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

loud-laptop-17949

10/26/2021, 10:33 PM
Is there a way to filter with
changed-since
and target type at the same time?
use case: I want to start our pants integration by linting shell libraries in CI
h

happy-kitchen-89482

10/26/2021, 10:41 PM
You can do something like
Copy code
./pants --changed-since=main --changed-dependees=transitive filter --target-type=shell_library | xargs -n 100 ./pants lint
The
filter
goal emits targets that you can then lint via xargs
Does that work?
l

loud-laptop-17949

10/26/2021, 10:56 PM
yeah it appears to
does the changed-since parameter use the merge-base for detecting changes?
h

happy-kitchen-89482

10/27/2021, 5:06 AM
3 Views