Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write source to .nupkg.metadata on package install #3785

Merged
merged 2 commits into from
Dec 5, 2020

Conversation

zivkan
Copy link
Member

@zivkan zivkan commented Dec 4, 2020

Bug

Fixes: NuGet/Home#10354
Regression: No

  • Last working version:
  • How are we preventing it in future:

Fix

Details:

  • Add Source property to NupkgMetadataFile, and increment file version
  • Write package source to .nupkg.metadata file when package is installed to global packages folder.
  • Didn't check what happens when a packages.config installs a package from the global packages folder to the solution packages folder. But I don't care if the .nupkg.metadata file lists the "original" package source or the global package folder's path. If the solution package folder's .nupkg.metadata lists the GPF as the source, the customer can check the GPF folder's .nupkg.metadata file for the original source.

Testing/Validation

Tests Added: Yes
Reason for not adding tests:
Validation:

@zivkan zivkan requested a review from a team as a code owner December 4, 2020 17:32
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.

Extend the .nupkg.metadata file to include the installation source
3 participants