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

average-balloon-31442

08/23/2022, 2:03 PM
Hi, I’m using pants 2.14.0dev2. We are trying to run tests in CI only for the changed projects.
pants --changed-since={COMMIT} --changed-dependees=transitive roots
I realised that roots ignores
--changed-since
and
--changed-dependees
, because it prints all the projects. But when you use:
pants --changed-since={COMMIT} --changed-dependees=transitive list
-> it shows all the targets. Our solution is to cut the project names and filter the output from the list, but is it expected somehow in the future to support
changed-since
and
changed-dependees
for
roots
command? Because I see it works for `lint`/`test` for example.
h

hundreds-father-404

08/23/2022, 2:07 PM
Ah, the
roots
goal is simplistic and ignores CLI arguments. It no matter what shows all your roots
h

happy-kitchen-89482

08/23/2022, 2:36 PM
I wonder if
roots
should error (or at least warn) if you pass target specs to it
3
3 Views