Skip to content

Conversation

@omajid
Copy link
Contributor

@omajid omajid commented Dec 29, 2025

Bug

Fixes: NuGet/Home#8601

Description

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

When building nuspec-based packages, the deterministic-mode
configuration is not flowed correctly to the PackageBuilder class (which
is initialized using this PackArgs object). Seems like this was missed
from the initial deterministic support in
NuGet#2989.

This commit is a no-op until deterministic mode is enabled and
NuGet/Home#8601 is fixed.
@dotnet-policy-service dotnet-policy-service bot added the Community PRs created by someone not in the NuGet team label Dec 29, 2025
@omajid omajid force-pushed the deterministic-pack-nuspec-file branch 4 times, most recently from 19b6b2f to aa6ce30 Compare December 29, 2025 22:39
Deterministic support was disabled due to various concerns some time
ago: NuGet/Home#8601

This PR re-enables deterministic support, while adding support for
SOURCE_DATE_EPOCH to override it. SOURCE_DATE_EPOCH is specified at:
https://reproducible-builds.org/docs/source-date-epoch/
Add support for a new MSBuild property that developrs can use to
override the deterministic timestamp. This allows developers to override
the auto-computed timetsamps, and enables working around processes/tools
that don't like the fixed/old timetsamps.
@omajid omajid force-pushed the deterministic-pack-nuspec-file branch from aa6ce30 to 50b60af Compare December 29, 2025 23:25
@dotnet-policy-service dotnet-policy-service bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Jan 6, 2026
@dotnet-policy-service
Copy link
Contributor

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 30 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Revisit deterministic pack

1 participant