https://pantsbuild.org/ logo
f

flat-zoo-31952

10/26/2020, 9:34 PM
another fun question... is there a way to make
./pants package
exit cleanly even if it finds no targets? i'm running
Copy code
./pants --changed-since=$COMPARISON_TARGET --changed-dependees=transitive package
and I want it to be okay if that doesn't match any targets
btw, doing this with the
test
goal doesn't cause any problems
h

hundreds-father-404

10/26/2020, 9:59 PM
There is not, but presumably we should change the behavior to never error. It’s a one-line fix. Are you okay with it being in 2.1.0.dev0, released this Friday likely? We’re hoping to release 2.0.0 tonight/tomorrow
f

flat-zoo-31952

10/26/2020, 10:00 PM
sure
is there a workaround i can do with something like
./pants filter
?
nvm, i think i got it
h

hundreds-father-404

10/26/2020, 10:02 PM
a clunky workaround:
Copy code
./pants --changed-since=FOO filter --target-type='python_awslambda,pex_binary,python_distribitution'
Then, if it’s non-empty, pass it to
./pants package
f

flat-zoo-31952

10/26/2020, 10:04 PM
exactly waht i came up with
👍 1
h

hundreds-father-404

10/26/2020, 11:23 PM
5 Views