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

Package Source Mapping - Re-download and overwrite packages in global package folder for easier onboarding. #12412

Open
JonDouglas opened this issue Feb 6, 2023 · 1 comment
Assignees
Labels
Area:PackageSourceMapping Issues related to the package source mapping feature Functionality:Restore Priority:2 Issues for the current backlog. Type:Feature

Comments

@JonDouglas
Copy link
Contributor

NuGet Product(s) Involved

NuGet SDK

The Elevator Pitch

Package source mapping currently requires a manual onboarding step of clearing out the global packages folder.

dotnet nuget locals global-packages -c

https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping#manual-onboarding

To make this easier for the end-user to have things "just work", we should reconsider this step:

When you restore packages for a project, NuGet will first look in the global package folder to see if the required packages are already installed there. If they are, NuGet will use them, instead of downloading them again.

Instead, NuGet should overwrite any defined package ID included in source mapping forcing a download so manual steps can be reduced and room for error lessens.

Additional Context and Details

No response

@nkolev92
Copy link
Member

Team Triage: Arturo to drive the disussion toward the right behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:PackageSourceMapping Issues related to the package source mapping feature Functionality:Restore Priority:2 Issues for the current backlog. Type:Feature
Projects
None yet
Development

No branches or pull requests

4 participants