https://pantsbuild.org/ logo
f

flat-zoo-31952

08/18/2022, 7:02 PM
Is there an easy way to get a union of
./pants --changed-since=main --changed-dependees=transitive list
with
./pants dependees --closed [some list of explicit deps]
?
I can do
Copy code
❯ ./pants --changed-since=HEAD --changed-dependees=transitive list > f1 && \
      ./pants dependees --closed --transitive tests/local/admin/conftest.py > f2 && \
      ./pants --spec-files=f1 --spec-files=f2 list
I guess, although it would be nice to not have to use files
a

ancient-france-42909

08/18/2022, 7:12 PM
I would’ve tried
<(./pants command)
, but I had that not work in the past
f

flat-zoo-31952

08/18/2022, 7:13 PM
process substitution just makes temp files under the hood anyways
and I too have had it fail in surprising ways
w

witty-crayon-22786

08/18/2022, 7:46 PM
as to your question, does
(do_x ; do_y) > output.txt
not do this?
f

flat-zoo-31952

08/18/2022, 7:59 PM
I suppose that would work, I forget about subshells
don't even need the subshell, just need a command group with
{ }
it seems. Thanks!
3 Views