Skip to content
Discussion options

You must be logged in to vote

I think you were pretty close, as there is no advanced search/filtering built into Pants. Perhaps something like:

$ pants dependents --transitive <some dependency> | sort > tgts-depending-on-some-dep.specs
$ pants list :: | sort > all.specs
$ comm -1 -3 some-deps.specs all.specs > tgts-not-depending-on-some-dep.specs

Then you can use the two tgts-..specs files as needed with subsequent runs:

$ pants --spec-files=tgts-not-depending-on-some-dep.specs test
# etc..

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@charlietsai
Comment options

Answer selected by charlietsai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants