Is there a way to always trigger `docker_image` ta...
# general
b
Is there a way to always trigger
docker_image
target when its a dependency to a
run_shell_command
?
As I recall older pants version used to do that and I depended on that behavior to have the latest image locally ready before running scripts. Now with
2.16
upgrade, it seems the dependency sensing is being a bit too optimistic
c
there’s a ton of changes to that target in 2.16, did you go through and check the changes to the various variants of the dependencies field in the changelog? https://pypi.org/project/pantsbuild.pants/2.16.0/
b
my suspicion would be that docker_image hashing is not picking up transitive deps. I build
python_distribution
, then install the resulting
whl
file inside docker instructions
well the issue only occurs when said docker_image dependency is a dependency of another run_shell_command
so I have
deploy
script target that depends on
publish
script target that depends on docker_image.
publish
target does the right thing and published image has the updated content. But if I make a code change and invoke
deploy
script, it doesn't seem to pick up the code change and rebuild the image before running
publish
script.
has there been any change in how
run_shell_command
is handling transitive dependency of another
run_shell_command
target that it depends on as an
execution_dependencies
? Doesn't seem obvious from the changelog
b
I’m not sure
run_shell_command
works as a dependency. Can you share what your build files look like?