https://pantsbuild.org/ logo
c

calm-artist-46894

01/03/2020, 7:15 AM
Hi, is there a way to filter target by type when build? Something like this:
./pants binary :: --filter-type=python_library
Or is there a way to pipe the result from
./pants filter
to the net goal?
w

witty-crayon-22786

01/03/2020, 6:52 PM
you have to use an intermediate file, but:
./pants filter --type=python_library --output-file=$tmpfile :: && ./pants --target-spec-file=$tmpfile binary
👍 1
c

calm-artist-46894

01/07/2020, 8:30 AM
This opens a lot of doors for me. Thanks
3 Views