https://pantsbuild.org/ logo
#general
Title
# general
h

hundreds-father-404

09/09/2018, 3:12 PM
To clarify, you’re proposing a syntax to cleanly specify multiple targets in the same folder via
{a, b}
? That sounds useful to me! A couple things to think about - are there any goals where this doesn’t make sense to allow multiple targets to run? I can’t think of any, but would be good to check
pants goals
for a sanity check - do we parse and validate all targets first (strict evaluation), or lazily go through each running the goal and then moving on to next target? In your above example, should you get an error about the invalid
a
target right away or only after executing
testing
- how do we enforce you can only do this at the top level of folders path? We don’t want to allow
src/python/pants/{base,bin}:other
, right?
e

enough-analyst-54434

09/09/2018, 4:09 PM
No. Danny is just using standard bash syntax here. Bash expands; ie:
Copy code
$ echo ./pants test tests/python/pants_test/option:{testing,a}
./pants test tests/python/pants_test/option:testing tests/python/pants_test/option:a
h

hundreds-father-404

09/09/2018, 5:02 PM
Ahh makes sense. Thanks for clarifying
2 Views