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

nice-florist-55958

06/27/2022, 3:17 PM
Do the
package
and
test
goals have a similar option as
fmt
that tells Pants to consider only changed files, say within a glob (e.g.,
/sub/path::
), and then walk back up the dependency graph to find all the relevant
pex_binary, python_tests, etc.
targets? Would like to add this step to our PR approval process and automatically reject a PR that causes these goals to fail (i.e., prove that a build will work in the release chain, and that any change does not affect another build).
1
n

narrow-vegetable-37489

06/27/2022, 3:43 PM
Yep!
--changed-since
and
--changed-dependees
, as well as target addresses, are available on most goals.
🙌 1
h

hundreds-father-404

06/27/2022, 4:04 PM
Yeah, they should work on all goals 🙂 In 2.13, we added support for it to
tailor
and
update-build-files
. Which means every goal works with it, except for the very few goals that don't take normal CLI args:
roots
and
paths
iirc
🙌 1
n

nice-florist-55958

06/27/2022, 9:51 PM
Thank you!
3 Views