Skip to content

Fix version conflict detection in new dependency resolver#6999

Merged
jeffkl merged 3 commits intodevfrom
dev-jeffkl-fix-version-conflict-detection
Dec 17, 2025
Merged

Fix version conflict detection in new dependency resolver#6999
jeffkl merged 3 commits intodevfrom
dev-jeffkl-fix-version-conflict-detection

Conversation

@jeffkl
Copy link
Contributor

@jeffkl jeffkl commented Dec 10, 2025

Bug

Fixes: NuGet/Home#14675

Description

The new dependency resolver loops through the defined graph looking for cycles and conflicts. If a good node is walked first, a version conflict is detected later and works just fine. However, if the conflicting node is walked first, it is added to the graph as a conflict but then the good node is never walked because the conflicting node was walked first.

This change updates the version conflict detection logic to handle the case where the ordering of the conflict would cause it to not work correctly.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@jeffkl jeffkl self-assigned this Dec 10, 2025
@jeffkl jeffkl requested a review from a team as a code owner December 10, 2025 17:26
Copy link
Member

@nkolev92 nkolev92 left a comment

Choose a reason for hiding this comment

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

I have some questions that might be easier to ask offline, so I'll ping you.

nkolev92
nkolev92 previously approved these changes Dec 12, 2025
zivkan
zivkan previously approved these changes Dec 12, 2025
@jeffkl jeffkl dismissed stale reviews from zivkan and nkolev92 via 73c3154 December 12, 2025 20:47
zivkan
zivkan previously approved these changes Dec 12, 2025
donnie-msft
donnie-msft previously approved these changes Dec 12, 2025
Nigusu-Allehu
Nigusu-Allehu previously approved these changes Dec 12, 2025
@jeffkl jeffkl dismissed stale reviews from Nigusu-Allehu, donnie-msft, and zivkan via 42d9ecd December 13, 2025 00:44
@jeffkl jeffkl force-pushed the dev-jeffkl-fix-version-conflict-detection branch from 73c3154 to 42d9ecd Compare December 13, 2025 00:44
@jeffkl jeffkl enabled auto-merge (squash) December 13, 2025 00:45
@zivkan zivkan force-pushed the dev-jeffkl-fix-version-conflict-detection branch from 42d9ecd to 710c2f5 Compare December 17, 2025 06:48
@jeffkl jeffkl merged commit aea7daa into dev Dec 17, 2025
17 of 18 checks passed
@jeffkl jeffkl deleted the dev-jeffkl-fix-version-conflict-detection branch December 17, 2025 07:43
jeffkl added a commit that referenced this pull request Dec 23, 2025
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.

New Dependency Resolver inconsistently reports NU1107

6 participants