Hey all, I noticed updating `instructions` on a Do...
# general
r
Hey all, I noticed updating
instructions
on a Docker image does not trigger the image target being included in
--changed-since
. Is that expected?
Every target in a BUILD file is changed when it's edited.
r
Hmm, I wonder if this
docker_image
target being in a macro has anything to do with it.
l
oh, so there is no git diff on the build file itself?
r
correct
c
I think this is ~related to this issue https://github.com/pantsbuild/pants/issues/19805
and as you already suspect, when changes are made to a file that is not linked to the target in any way pants know of (in terms of dependencies and the targets BUILD file), changed-since won’t work.
in order to address 19805, my plan is to infer additional dependencies of some sort to all contributing sources that impacts the targets field values. no easy solution, so progress has been slow.
I imagine a crude work-around could be to have an explicit dependency to the macro file itself from all targets the macro creates..
l
This sounds very challenging for the case of a change in a centralized macros file. I am curious if there is any tracing right now from the target to the macro that aided to create it. I've kind of assumed that the macro just executes as a plain function with no tracing and is in every way equivalent to what would happen if the macro had been inlined into the places it is invoked.
And Andreas, for the case of 19805, I'll comment in there