Skip to content

Retry dotnet tool restore once on a cold-cache failure - #86

Merged
Mpdreamz merged 1 commit into
mainfrom
fix/dotnet-tool-restore-cold-cache-race
Sep 2, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
fix/dotnet-tool-restore-cold-cache-race

Conversation

@Mpdreamz

@Mpdreamz Mpdreamz commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • dotnet tool restore now retries once on failure: dotnet/sdk#53783 causes cold-cache restores of 2+ RID-specific tool packages in one manifest (release-notes, nupkg-validator, assembly-differ are all native-AOT now) to misattribute one package's DotnetToolSettings.xml to another - hit on every fresh CI runner or fresh container, before the resolver cache warms up. Found while chasing down the same failure in assembly-differ/assembly-rewriter/nupkg-validator's own release pipelines.

Test plan

  • dotnet build build/scripts/scripts.fsproj -c Release succeeds.

Made with Cursor

dotnet/sdk#53783: restoring 2+ RID-specific tool packages in one manifest
(release-notes, nupkg-validator, assembly-differ are all native-AOT now)
can misattribute one package's DotnetToolSettings.xml to another on a cold
tool-resolver cache - every fresh CI runner hits this. The cache is warm
after the first attempt, so a bare retry always succeeds.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Mpdreamz
Mpdreamz merged commit 0f0f013 into main Sep 2, 2026
3 checks passed
@Mpdreamz
Mpdreamz deleted the fix/dotnet-tool-restore-cold-cache-race branch September 2, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant