Skip to content

Deterministic pack should be opt-in (disabled by default) - #7652

Merged
zivkan merged 3 commits into
devfrom
dev-zivkan-gate-deterministic-pack-timestamps
Aug 27, 2026
Merged

zivkan merged 3 commits into
devfrom
dev-zivkan-gate-deterministic-pack-timestamps

Conversation

@zivkan

@zivkan zivkan commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15050

Description

Disable deterministic pack by defaults. Customers will need to either set DeterministicTimestamp to true or a specific timestamp to use the feature.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests no logic changes, which are already tested. This just changes the default.
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner August 25, 2026 03:00
Nigusu-Allehu
Nigusu-Allehu previously approved these changes Aug 25, 2026
nkolev92
nkolev92 previously approved these changes Aug 25, 2026
@akoeplinger

Copy link
Copy Markdown
Contributor

I don't think we should gate this on 11.0.100, the underlying problem won't go away (see also dotnet/dotnet#8346 which is another case).

I think we should change the design to make DeterministicTimestamp=false by default.

@omajid

omajid commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

I think we should change the design to make DeterministicTimestamp=false by default.

Do you see a scenario (maybe in the future) where we can switch it back to DeterministicTimestamp=false by default? Or do you think there are too many risky things this will risk breaking?

@zivkan
zivkan dismissed stale reviews from nkolev92 and Nigusu-Allehu via 28d2c73 August 27, 2026 00:24
@zivkan zivkan changed the title Deterministic pack only when SdkAnalysisVersion >= 11.0.100 Deterministic pack should be opt-in (disabled by default) Aug 27, 2026
@zivkan
zivkan requested a review from nkolev92 August 27, 2026 21:53
@zivkan
zivkan merged commit 966b322 into dev Aug 27, 2026
17 of 18 checks passed
@zivkan
zivkan deleted the dev-zivkan-gate-deterministic-pack-timestamps branch August 27, 2026 23:00
@akoeplinger

Copy link
Copy Markdown
Contributor

FWIW I'd say if you have SOURCE_DATE_EPOCH set then you do want the deterministic behavior

@nkolev92

Copy link
Copy Markdown
Member

FWIW I'd say if you have SOURCE_DATE_EPOCH set then you do want the deterministic behavior

The VMR build is setting it and it's causing problems there.

At this point in the release cycle is this is a lot of churn and risk. We can revisit different defaults in a future release.

@akoeplinger

Copy link
Copy Markdown
Contributor

The VMR build is setting it and it's causing problems there.

Forgot to follow-up on this but this wasn't the case (in the Microsoft build), there we had Deterministic=true (which is default) but with an unset DeterministicTimestamp which applied the current pack time to every entry and caused the issues.

This is different to SOURCE_DATE_EPOCH which was only set by source-build and should actually be enough signal to opt-in too.

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.

Deterministic pack defaults rewrite package entry timestamps and change PreserveNewest behavior

5 participants