Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

No longer show a page-level error when enabling a duplicate package source - #6745

#6745
Merged
donnie-msft merged 2 commits into
devNuGet/NuGet.Client:devfrom
dev-donnie-msft-usxHandleDuplicateEnabledNuGet/NuGet.Client:dev-donnie-msft-usxHandleDuplicateEnabledCopy head branch name to clipboard
Sep 2, 2025
Merged

No longer show a page-level error when enabling a duplicate package source#6745
donnie-msft merged 2 commits into
devNuGet/NuGet.Client:devfrom
dev-donnie-msft-usxHandleDuplicateEnabledNuGet/NuGet.Client:dev-donnie-msft-usxHandleDuplicateEnabledCopy head branch name to clipboard

Conversation

@donnie-msft

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#14499

Description

Removes NuGet's VS Options implementation validating uniqueness of sources and therefore allows a duplicate source to become enabled. The Unified Settings registration.json enforces uniqueness by the declaration:
"uniqueness": "caseInsensitive"

Removing this enables the scenario in the Issue, and as described below:

Starting with the scenario of a duplicate source that is not enabled:
image

After checking the box to enable this package source, the source is enabled in the NuGet.Config, and no page-level error occurs. The item-level error is still shown:

image

Created a follow-up tracking changes that Unified Settings may make in NuGet/Home#14507.
We will either bring the validation back at the array-item level or remove it and use a configurable uniqueness check that can consider Enabled sources.

PR Checklist

@donnie-msft
donnie-msft requested a review from a team as a code owner August 28, 2025 17:21
@donnie-msft
donnie-msft requested review from jebriede and zivkan August 28, 2025 17:21

@jebriede jebriede left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with suggestion!

@donnie-msft
donnie-msft force-pushed the dev-donnie-msft-usxHandleDuplicateEnabled branch from ac7df86 to 4847a81 Compare September 2, 2025 12:36
@donnie-msft
donnie-msft enabled auto-merge (squash) September 2, 2025 12:38
@donnie-msft
donnie-msft merged commit bfa6671 into dev Sep 2, 2025
17 of 18 checks passed
@donnie-msft
donnie-msft deleted the dev-donnie-msft-usxHandleDuplicateEnabled branch September 2, 2025 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.