Repository navigation
Make PackageBuilder.CalcPsmdcpName deterministic - #7410
Merged
Merged
Conversation
20 of 22 tasks
|
johnny1494
approved these changes
May 24, 2026
Contributor
Author
|
Alternatively, we can try and fix the nuspec glob-resolving code at to return in a deterministic order. |
nkolev92
reviewed
May 29, 2026
omajid
force-pushed
the
deterministic-packagebuilder-psmdcpname
branch
from
June 2, 2026 03:10
d031db4 to
88533da
Compare
omajid
marked this pull request as draft
June 2, 2026 03:11
omajid
force-pushed
the
deterministic-packagebuilder-psmdcpname
branch
10 times, most recently
from
June 5, 2026 15:27
04d0658 to
4c5d050
Compare
nkolev92
reviewed
Jun 5, 2026
omajid
force-pushed
the
deterministic-packagebuilder-psmdcpname
branch
4 times, most recently
from
June 8, 2026 18:50
2f7d5b1 to
8453bb0
Compare
The order of input files can vary between nuget pack runs, specially if nuspec files use the `**` glob when specifying `<file>` elements. A simple workaround is to sort files before computing the hash of the file contents in nuget package for the psmdcp file name. This keeps the hash stable across nuget pack runs. Fixes: NuGet/Home#14916
omajid
force-pushed
the
deterministic-packagebuilder-psmdcpname
branch
from
June 8, 2026 21:10
8453bb0 to
d43c96d
Compare
omajid
marked this pull request as ready for review
June 9, 2026 02:25
Nigusu-Allehu
self-requested a review
June 9, 2026 23:38
zivkan
approved these changes
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#14916
Description
The order of input files can vary between nuget pack runs, specially if nuspec files use the
**glob when specifying<file>elements.A simple workaround is to sort files before computing the hash of the file contents in nuget package for the psmdcp file name. This keeps the hash stable across nuget pack runs.
PR Checklist