Hello! I'm wondering if it's possible to run a doc...
# general
a
Hello! I'm wondering if it's possible to run a docker target, but only if its dependencies have been changed ? `--changed-since`` doesn't work for me with
pants run
since it requires a target to be specified
Copy code
[ERROR] You used --changed-since at the same time as using directory arguments. You can only use --changed-since or use normal arguments.
r
https://pantsbuild.slack.com/archives/C046T6T9U/p1663221441211299
Copy code
pants --filter-target-type=docker_image --changed-since=origin/master --changed-dependees=transitive package
🙏 1
a
Thank you!
r
Although this is just building the image. So no the run wouldn't work directly. You will have to run the image as usual after the build has finished.
a
Got you, the same is true for publishing i suppose ?
r
yep!
a
thanks
r
Sorry I said yes too fast, but I am not sure
I think publish might work since it does build the image first. Worth a try
a
I'll try it out
c
I would imagine
package
and
publish
being interchangeable as
publish
is a superset of
package
with otherwise same execution requirements.