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

A tip about package source mapping feature is displayed in VS when the repo has only one package source #13424

Open
kartheekp-ms opened this issue May 1, 2024 · 1 comment
Labels
Area:PackageSourceMapping Issues related to the package source mapping feature Functionality:VisualStudioUI Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:DCR Design Change Request

Comments

@kartheekp-ms
Copy link
Contributor

kartheekp-ms commented May 1, 2024

NuGet Product Used

Visual Studio Package Management UI

Product Version

VS Internal preview version

Worked before?

No response

Impact

Other

Repro Steps & Context

  1. Create a sample Console application
  2. Add a NuGet.Config file to that has only nuget.org as package source to the sample application created above.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>
  1. Right click on the sample project and selected Manage NuGet Packages..
  2. In the browse tab, select any package.
  3. In Package details pane on the right side notice the information icon that says Package source mapping is off.

I think it is not required to configure package source mapping when the repo has only feed configured. The docs also suggest that Package Source Mapping is a tool that can be used to improve your supply chain security, especially if you use a mix of public and private package sources.

image

Verbose Logs

No response

@kartheekp-ms kartheekp-ms added Type:Bug Functionality:VisualStudioUI Area:PackageSourceMapping Issues related to the package source mapping feature labels May 1, 2024
@donnie-msft
Copy link
Contributor

Could you use the DCR template and that way you can propose an alternative for this scenario? If customers don't opt-in to source mapping when there's 1 source, then when adding another package source, they would have to retroactively map everything at that point. It's an option but I don't think we have community input suggesting that yet. If folks want to upvote/comment here that would be a good signal that the "Off" message is intrusive and they'd prefer to opt-in later.

@kartheekp-ms kartheekp-ms added Type:DCR Design Change Request and removed Type:Bug labels May 1, 2024
@jeffkl jeffkl added the Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. label May 6, 2024
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:VisualStudioUI Priority:3 Issues under consideration. With enough upvotes, will be reconsidered to be added to the backlog. Type:DCR Design Change Request
Projects
None yet
Development

No branches or pull requests

3 participants