Preserve attribution in inverted dependency trees - #19899
Closed
zanieb wants to merge 2 commits into
Closed
Conversation
uv test inventory changesThis PR changes the tests when compared with the latest
|
Member
Author
|
Rebased onto #19905 |
zanieb
force-pushed
the
zb/tree-invert-attribution
branch
from
June 18, 2026 03:51
fbc5775 to
272fe24
Compare
charliermarsh
approved these changes
Jun 18, 2026
charliermarsh
left a comment
Member
There was a problem hiding this comment.
Think this should merge.
Member
|
Oh sorry missed your comment! |
zanieb
added a commit
that referenced
this pull request
Jun 18, 2026
Replacement for #19899, which GitHub closed automatically when its stacked base was merged.
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.
Summary
Preserve dependency provenance when rendering inverted project trees.
Inverted traversal now carries required extras and universal marker conditions through each reverse path, stops dependency-group paths at the workspace member that owns the group, and rejects consumers that did not activate the required extra. Declared conflict constraints are included when checking marker satisfiability, so mutually exclusive extras and groups cannot form an impossible path through a shared package node.
This prevents
uv tree --invertfrom attributing an optional, grouped, or marker-conditional dependency to unrelated workspace members.Test Plan
cargo +stable test --package uv --test project treecargo +stable clippy --package uv-resolver --all-targets --all-features --locked -- -D warningscargo +stable clippy --package uv --test project --locked -- -D warningscargo +stable fmt --all -- --checkgit diff --check