Skip to content

Commit

Permalink
dotnet-8: use offline build
Browse files Browse the repository at this point in the history
Dotnet-8 tag 8.0.10 or older cannot be built anymore,
as Microsoft decided to retire the following repositories:

  * https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL.Selfhost/nuget/v3/index.json
  * https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL/nuget/v3/index.json

The repositories were replaced with:

  * https://pkgs.dev.azure.com/mseng/PipelineTools/_packaging/BuildXL.External.Dependencies/nuget/v3/index.json

The problem is that the tagged releases of dotnet <= 8.0.10 will never be able
to build anymore, as tags cannot be replaced.

The fix has landed to dotnet/msbuild#10838, and the
following tagged releases should be buildable again.

See: microsoft/BuildXL#1343

But, if we leverage the offline build, after the prep.sh has been run,
there is no required connection to the inexistent repositories, thus the build will
work for the old tags too.
  • Loading branch information
ader1990 committed Nov 4, 2024
1 parent f34d2af commit 793fccc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dotnet-8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ pipeline:
./prep.sh --bootstrap
# /p:PrebuiltPackagesPath=/home/build/src/packages \
- runs: |
./build.sh --online --clean-while-building \
./build.sh --clean-while-building \
-- \
/v:n \
/p:ContinueOnPrebuiltBaselineError=true \
/p:MinimalConsoleLogOutput=false \
/p:SkipPortableRuntimeBuild=true
/p:SkipPortableRuntimeBuild=true \
/p:BuildWithOnlineSources=false
- runs: |
mkdir -p "${{targets.destdir}}"/usr/share/dotnet
mkdir -p "${{targets.destdir}}"/usr/bin
Expand Down

0 comments on commit 793fccc

Please sign in to comment.