Skip to content

Reproduce project installation through a group-only dependency - #509

Closed
zaniebot wants to merge 3 commits into
mainfrom
zb/reproduce-bug/20877
Closed

zaniebot wants to merge 3 commits into
mainfrom
zb/reproduce-bug/20877

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 3, 2026 •

Copy link
Copy Markdown
Collaborator

Reproduces astral-sh#20877, where uv sync --only-group installs the current project when a selected dependency refers back to it transitively. astral-sh#20840 began reactivating non-installable workspace members during transitive dependency traversal, causing the excluded project to be installed. Capture the existing behavior in a focused integration test so the regression can be corrected in a stacked follow-up.

Comment thread crates/uv/tests/sync/sync.rs Outdated
Comment on lines +4670 to +4672
/// <https://github.com/astral-sh/uv/pull/20840> began reactivating non-installable workspace
/// members during transitive dependency traversal, causing `--only-group` to install an excluded
/// project when a selected package depends on it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This should be in the pull body, not the doc comment here

@astral-automations-bot

Copy link
Copy Markdown

Promoted to #20916.

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.

2 participants