Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies --transitive to include target roots that are also dependencies #10186

Merged

Conversation

Eric-Arellano
Copy link
Contributor

Before, ./pants dependencies --transitive :: would return empty input. This is surprising because many of the target roots are in fact dependencies of other target roots.

We change TransitiveTargets to have the field dependencies, which is any of the transitive dependencies of the target roots. The dependencies may include values from the target roots.

TransitiveTargets keeps a closure property to combine the roots with the dependencies.

[ci skip-rust-tests]

… dependencies

# Rust tests will be skipped. Delete if not intended.
[ci skip-rust-tests]
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Awesome: thanks!

@stuhood stuhood merged commit 8a4804b into pantsbuild:master Jun 27, 2020
@Eric-Arellano Eric-Arellano deleted the fix-dependencies-transitive branch June 27, 2020 03:52
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.

None yet

2 participants