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

Deduplicate NuGet sources provided from NuGet.Config and .NET CLI arguments for tool install #43507

Open
baronfel opened this issue Sep 17, 2024 · 3 comments
Assignees
Milestone

Comments

@baronfel
Copy link
Member

Is your feature request related to a problem? Please describe.

When a user has a NuGet.config with a source in it and also provides that same source URL from the commandline via the --add-source CLI option, our usage of the NuGet APIs treats that as 2 distinct sources. If that source requires authentication, then that authentication only applies to one of the sources (often the one from the NuGet.config). This leads to hard-to-diagnose failures when the duplicate source is used for the tool installation.

Describe the solution you'd like

Tool install (and possibly any other command that supports the --add-source semantic) should deduplicate the sources used for the install based on the URL.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Sep 17, 2024
@dsplaisted
Copy link
Member

@nkolev92 @zivkan Any thoughts on this? A feed might be configured differently in NuGet.config than it would be with --add-source, so I'm not sure what the correct de-duping behavior would be.

@baronfel
Copy link
Member Author

@marcpopMSFT this one is ready to go, implemention-wise. We should talk scheduling at some point.

@baronfel baronfel removed the untriaged Request triage from a team member label Oct 29, 2024
@marcpopMSFT marcpopMSFT added this to the 10.0.1xx milestone Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants