Repository navigation
Fix outdated package listing crash when no eligible transitive versio… - #7754
Merged
Merged
Conversation
kartheekp-ms
approved these changes
Oct 6, 2026
donnie-msft
approved these changes
Oct 6, 2026
jeffkl
approved these changes
Oct 6, 2026
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…n exists
Bug
Fixes: NuGet/Home#15098
Description
Fixes
dotnet package list --outdated --include-transitivethrowing "Sequence contains no matching element" when no eligible version is available for a transitive package.Package metadata can be returned by a source while every version is excluded by prerelease, listing, or highest-patch/minor constraints. The transitive package path previously attempted to select metadata for a null latest version. It now handles this case consistently with top-level packages, allowing the existing report logic to display "Not found at the sources".
Added a new "unit" test, as the existing similar list package tests are Dotnet.Integration.Tests which takes 2-7 seconds each to run. The new tests takes 12ms on my machine on the first test to jit everything, and then the rest of the tests take less than 1ms each. So, the added tests are comprehensive for all different scenarios, not just the one that the bug is fixing.
PR Checklist
Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.N/A