Open richardjharding opened 6 years ago
/cc @enricosada @matthid ideas?
so an update on this - I think its something to do with mono, runtime version in the targets? If I do an explicit
mono ./.paket/paket.exe restore
then it works - its only an issue if I do a dotnet restore on its own
I've got an similar issue, using paket to build .net Core solutions on docker.
I use the microsoft/dotnet images and install mono there:
FROM microsoft/dotnet:2-sdk
LABEL maintainer="Patrick Weegen (patxxx@gmail.com)"
RUN apt-get update && apt-get install -y mono-complete
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
When running dotnet restore
for my solution I get the following error (copied from bitbucket pipelines, but the same running the image on my local machine):
Bus error (core dumped)
/opt/atlassian/pipelines/agent/build/.paket/Paket.Restore.targets(81,5): error MSB3073: The command "mono --runtime=v4.0.30319 "/opt/atlassian/pipelines/agent/build/.paket/paket.exe" restore" exited with code 135. [/opt/atlassian/pipelines/agent/build/src/FDAS.Presence/FDAS.Presence.csproj]
If I'm using the image based on microsoft/dotnet:2.0-sdk
(exactly the same dockerfile only other base image) it all works fine.
Also calling paket.exe restore
manually like @richardjharding mentioned above works on the conainer.
Description
I've created a vsts build agent derived from microsoft/vsts-agent:ubuntu-14.04-docker-17.06.0-ce-standard image and when I add .net core 2.1 SDK paket fails with errors like
Repro steps
The docker file used to create the agent is
Expected behavior
dotnet restore completes without errors
Actual behavior
There are errors restoring some packages
removing the line in the docker file
means the restore works correctly - I have the rc sdk on a windows desktop and paket restores without errors - am I missing some other upgrade?
Paket version 5.161.3, I've also tried deriving from the ubuntu 16 version of the vsts agent and tweaking the f# tools install to suit but the same errors occur during restore
Any help much appreciated