Paket , net core sdk 2.1 RC and ubuntu docker build agent - EXEC : Could not fix timestamps in
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 2.1k
- Forks
- 528
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 54
Description
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
EXEC : Could not fix timestamps in /opt/vsts/work/1/s/packages/Microsoft.DotNet.PlatformAbstractions/microsoft.dotnet.platformabstractions.2.0.4.nupkg. error : End of Central Directory record could not be found. [/opt/vsts/work/1/s/Sse.Retail.Fusion.Reactor.Specs/Sse.Retail.Fusion.Reactor.Specs.fsproj]
/opt/vsts/work/1/s/.paket/Paket.Restore.targets(76,5): error MSB3073: The command "mono --runtime=v4.0.30319 "/opt/vsts/work/1/s/.paket/paket.exe" restore --target-framework "netcoreapp2.0"" exited with code 1. [/opt/vsts/work/1/s/Sse.Retail.Fusion.Reactor.Specs/Sse.Retail.Fusion.Reactor.Specs.fsproj]
0 Warning(s)
Repro steps
The docker file used to create the agent is
FROM microsoft/vsts-agent:ubuntu-14.04-docker-17.06.0-ce-standard
WORKDIR /root
RUN curl --insecure -o ./sonarscanner.zip -L https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.0.3.778-linux.zip
RUN unzip sonarscanner.zip
RUN rm sonarscanner.zip
ENV SONAR_RUNNER_HOME=/root/sonar-scanner-3.0.3.778-linux
ENV PATH $PATH:/root/sonar-scanner-3.0.3.778-linux/bin
WORKDIR /vsts
RUN sudo apt-get update
RUN sudo apt-get install -y --no-install-recommends dotnet-sdk-2.1.105
RUN sudo apt-get install -y --no-install-recommends dotnet-sdk-2.1.300-rc1-008673
RUN rm -rf /var/lib/apt/lists/*
RUN dotnet help
RUN curl -fsSL https://goss.rocks/install | sh
RUN sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
RUN sudo apt install apt-transport-https
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-trusty main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
RUN sudo apt update
RUN sudo apt-get -y install fsharp
RUN rm -rf /var/lib/apt/lists/*
Expected behavior
dotnet restore completes without errors
Actual behavior
There are errors restoring some packages
5:4>EXEC : Could not fix timestamps in /opt/vsts/work/1/s/packages/Microsoft.DotNet.PlatformAbstractions/microsoft.dotnet.platformabstractions.2.0.4.nupkg. error : End of Central Directory record could not be found. [/opt/vsts/work/1/s/Sse.Retail.Fusion.Reactor.Specs/Sse.Retail.Fusion.Reactor.Specs.fsproj]
Something went wrong while downloading Microsoft.DotNet.PlatformAbstractions 2.0.4
Message: Error during extraction of /opt/vsts/work/1/s/packages/Microsoft.DotNet.PlatformAbstractions/microsoft.dotnet.platformabstractions.2.0.4.nupkg.
==> Trying again
removing the line in the docker file
RUN sudo apt-get install -y --no-install-recommends dotnet-sdk-2.1.300-rc1-008673
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Dockerfile and the restore command referenced in .paket/Paket.Restore.targets at line 76. Reproduce the restore with and without dotnet-sdk-2.1.300-rc1-008673, then inspect the failing package download and extraction path. Done means dotnet restore completes successfully with the RC SDK installed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, fsharp, ubuntu
- Domain
- devops, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100