I want to use Pants with `--changed-since` with `-...
# general
a
I want to use Pants with
--changed-since
with
--changed-dependents
to only rebuild the necessary images in my CI pipeline. The best way I've found to achieve this is to use
pants --filter-target-type="docker_image" --changed-since=<COMMIT_SHA> --changed-dependents=transitive publish
. Is there an easy way to invert this operation, in order to output image targets that haven't changed? I want to run a separate CI-job to re-tag these old images with the new tag. Right now I'm using
pants --filter-target-type="docker_image" :: list
to get all the possible docker targets and differencing the outputs in order to get the set of images that haven't changed, but this feels hacky.
g
Imho, not hacky at all. A lot of missing features can be scripted using existing pants commands.
👍 1