Nixpkgs version
Describe the bug
dotnet fails to restore at least one project after upgrading the SDK to net10: for example, /nix/store/cfqx8mrgv82h8ag1y3gq7gfl0q92hv21-dotnet-sdk-wrapped-10.0.100/bin/dotnet restore in commit 1f2280f36ac229ebc89123980d1fdcf8218423d8 of https://github.com/Smaug123/WoofWare.Incremental fails with:
/nix/store/y2sq06r0f6rz5j83xv93hni5swqla5n1-dotnet-sdk-10.0.100/share/dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(66,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true. [/Users/patrick/Documents/GitHub/WoofWare.Incremental/WoofWare.Incremental.Test/WoofWare.Incremental.Test.fsproj]
This also affects the passthru fetch-deps. I attached some logs suggesting that some restores worked; I think those are the net9-or-lower projects.
The restore only fails for the net10 TargetFramework (exe or library, I've tried both).
Steps to reproduce
git clone https://github.com/Smaug123/WoofWare.Incremental && cd WoofWare.Incremental && git checkout 1f2280f36ac229ebc89123980d1fdcf8218423d8
nix develop --command dotnet restore
(I've only tested this, and only reproduced this, on aarch64-darwin.)
Expected behaviour
The .NET build completes successfully.
Screenshots
No response
Relevant log output
$ nix build .#default.fetch-deps && ./result nix/deps.json && rm result
warning: Git tree '/Users/patrick/Documents/GitHub/WoofWare.Incremental' is dirty
fetching dependencies for WoofWare.Incremental
Running phase: unpackPhase
unpacking source archive /nix/store/sk70xyxsd497wlm03gcka3ci28rnbgb7-6y639q8b9904xyrc9hxm73zvsng9cgs1-source
source root is 6y639q8b9904xyrc9hxm73zvsng9cgs1-source
Running phase: patchPhase
Running phase: configureNuget
The template "NuGet Config" was created successfully.
Processing post-creation actions...
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Executing dotnetConfigureHook
Tool 'fantomas' (version '7.0.3') was restored. Available commands: fantomas
Tool 'fsharp-analyzers' (version '0.34.1') was restored. Available commands: fsharp-analyzers
Restore was successful.
Determining projects to restore...
Restored /private/var/folders/tq/sx8_b6p91nz72q7_kgk1vgp80000gn/T/fetch-deps-WoofWare.Incremental.vwyEJ5/6y639q8b9904xyrc9hxm73zvsng9cgs1-source/WoofWare.Incremental/WoofWare.Incremental.fsproj (in 623 ms).
Determining projects to restore...
Restored /private/var/folders/tq/sx8_b6p91nz72q7_kgk1vgp80000gn/T/fetch-deps-WoofWare.Incremental.vwyEJ5/6y639q8b9904xyrc9hxm73zvsng9cgs1-source/WoofWare.Incremental/WoofWare.Incremental.fsproj (in 556 ms).
Determining projects to restore...
Restored /private/var/folders/tq/sx8_b6p91nz72q7_kgk1vgp80000gn/T/fetch-deps-WoofWare.Incremental.vwyEJ5/6y639q8b9904xyrc9hxm73zvsng9cgs1-source/WoofWare.Incremental/WoofWare.Incremental.fsproj (in 587 ms).
Determining projects to restore...
Restored /private/var/folders/tq/sx8_b6p91nz72q7_kgk1vgp80000gn/T/fetch-deps-WoofWare.Incremental.vwyEJ5/6y639q8b9904xyrc9hxm73zvsng9cgs1-source/WoofWare.Incremental/WoofWare.Incremental.fsproj (in 116 ms).
Determining projects to restore...
/nix/store/y2sq06r0f6rz5j83xv93hni5swqla5n1-dotnet-sdk-10.0.100/share/dotnet/sdk/10.0.100/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(66,5): error NETSDK1226: Prune Package data not found .NETCoreApp 10.0 Microsoft.NETCore.App. To ignore this error, set the AllowMissingPrunePackageData to true. [/private/var/folders/tq/sx8_b6p91nz72q7_kgk1vgp80000gn/T/fetch-deps-WoofWare.Incremental.vwyEJ5/6y639q8b9904xyrc9hxm73zvsng9cgs1-source/WoofWare.Incremental.Test/WoofWare.Incremental.Test.fsproj]
Additional context
This has happened on all the prereleases I tried, but an issue of this shape was fixed in the SDK so I didn't report it earlier in case it was in the SDK.
#461246 was the PR that added the stable net10 release, but I think the issue was present in earlier release candidates too.
System metadata
$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 24.6.0, macOS 15.6.1`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.31.2`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/store/7yzwp99zg2qsv3pwf3b4jariqxfid8n7-source`
Notify maintainers
@kuznero @mdarocha @corngood
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Describe the bug
dotnetfails to restore at least one project after upgrading the SDK to net10: for example,/nix/store/cfqx8mrgv82h8ag1y3gq7gfl0q92hv21-dotnet-sdk-wrapped-10.0.100/bin/dotnet restorein commit 1f2280f36ac229ebc89123980d1fdcf8218423d8 of https://github.com/Smaug123/WoofWare.Incremental fails with:This also affects the passthru fetch-deps. I attached some logs suggesting that some restores worked; I think those are the net9-or-lower projects.
The restore only fails for the
net10TargetFramework (exe or library, I've tried both).Steps to reproduce
git clone https://github.com/Smaug123/WoofWare.Incremental && cd WoofWare.Incremental && git checkout 1f2280f36ac229ebc89123980d1fdcf8218423d8nix develop --command dotnet restore(I've only tested this, and only reproduced this, on aarch64-darwin.)
Expected behaviour
The .NET build completes successfully.
Screenshots
No response
Relevant log output
Additional context
This has happened on all the prereleases I tried, but an issue of this shape was fixed in the SDK so I didn't report it earlier in case it was in the SDK.
#461246 was the PR that added the stable net10 release, but I think the issue was present in earlier release candidates too.
System metadata
Notify maintainers
@kuznero @mdarocha @corngood
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.