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 validation of dependencies ignores breaking with generated subtargets #10407

Merged
merged 1 commit into from Jul 20, 2020

Conversation

Eric-Arellano
Copy link
Contributor

@Eric-Arellano Eric-Arellano commented Jul 20, 2020

Problem

We eagerly validate that every ! is used in the dependencies field as a matter of good UX, because it's confusing how all the different pieces fit together.

However, imagine this: you have a target that owns 5 files. You set on that target !./bad.py. However, only one of those 5 files actually uses bad.py. This means that the 4 other generated subtargets would now all complain that the ignore !./bad.py is unused.

[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.

Thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 1a1c07e on Eric-Arellano:fix-ignores into 1f6267f on pantsbuild:master.

@Eric-Arellano Eric-Arellano merged commit 6cbb607 into pantsbuild:master Jul 20, 2020
@Eric-Arellano Eric-Arellano deleted the fix-ignores branch July 20, 2020 18:40
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

3 participants