Skip to content

Conversation

omajid
Copy link
Contributor

@omajid omajid commented Jul 21, 2025

Bug

Fixes:

Description

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 #2989.

This commit is a no-op until deterministic mode is enabled and NuGet/Home#8601 is fixed.

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 Jul 21, 2025
@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 Jul 29, 2025
@omajid
Copy link
Contributor Author

omajid commented Aug 28, 2025

I don't have permissions to re-open :(

@dotnet-policy-service dotnet-policy-service bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 28, 2025
@akoeplinger
Copy link
Contributor

I do :)

@akoeplinger akoeplinger reopened this Aug 28, 2025
@akoeplinger
Copy link
Contributor

I guess if you want to get this reviewed you'd need to move it from Draft to Ready for review

@omajid
Copy link
Contributor Author

omajid commented Aug 28, 2025

Thanks for re-opening.

I plan to add some tests, and fill out the PR forms before making it ready for review.

@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 Sep 4, 2025
@omajid
Copy link
Contributor Author

omajid commented Sep 4, 2025

This is still on my plate, just a bit lower priority. I plan to work on this some time in the next few weeks.

@dotnet-policy-service dotnet-policy-service bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Sep 4, 2025
@aortiz-msft aortiz-msft added the Merge next release PRs that should not be merged until the dev branch targets the next release label Sep 8, 2025
@zivkan
Copy link
Member

zivkan commented Sep 9, 2025

This commit is a no-op until deterministic mode is enabled and NuGet/Home#8601 is fixed.

What is the benefit of this PR if deterministic mode is not enabled?

Given that the last time deterministic mode was tried back in 2019, that it caused a whole bunch of people serious issues and the feature had to be removed, my concern is that looking at this PR's diff is not enough to determine whether this PR is safe to accept. Additional validation would be needed to ensure that pack of both projects and nuspec files do not result in packages with fixed timestamps. But since this does not change behavior from a customer point of view, time spent validating "nothing has changed" is less valuable than fixing bugs, adding features, or even working on docs.

My suggestion is to avoid working on anything related to deterministic pack's implementation until it's determined that deterministic pack is safe to re-enable. If someone dislikes PackArgs having a Deterministic property that is unused, there is less risk in deleting the property than there is in wiring up the property to have a value and accidentally enabling it before the root cause behind 2019's rollback is resolved. I don't want to make it look like the NuGet team didn't learn from 2019

@omajid
Copy link
Contributor Author

omajid commented Sep 9, 2025

What is the benefit of this PR if deterministic mode is not enabled?

Nothing.

I am working on re-enabling it, and this was an isolated bug-fix from everything else in that change.

My suggestion is to avoid working on anything related to deterministic pack's implementation until it's determined that deterministic pack is safe to re-enable.

Okay.

@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 Sep 16, 2025
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 Merge next release PRs that should not be merged until the dev branch targets the next release 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.

4 participants