Debugging Why a Target is Rerun Again #3164
-
I have a quite simple Target, which only depends on a few files.
The target looks like this:
I'm not sure if I am wrong / or how to debug why that task is running again:
So, the first thing I did is to check its input, to see if I might miss something:
Ok, as expected, not other targets/inputs going into the task. The next thing i tried to do is to see if the input actually changed by accident. Maybe a other process I launch changes a file. For that I did the test 'println' lines. A run, with a expected execution of the Target
Then I touch some files why lower in the dependency graph, and the
So, my question is: How do I find out why my target is rerunning again? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You can inspect the file You can also check the |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the hints. Ok, I when it goes wrong, I got this in
This was repeatable, is that it always calculated the inputHash to
What is most likely to happen:
Follow up questions:
Anyway, thanks for the help. I probably can get it fixed from here on. Either by ensuring the environment is similar enough between the BSP and the CLI. Or by get that 'target' out of the BSP paths. |
Beta Was this translation helpful? Give feedback.
You can inspect the file
out/mill-profile.json
. It contains some values for all targets of the last run, e.g.cached
,inputsHash
andpreviousInputsHash
.You can also check the
target.json
file underout
(e.g.out/nodeInstall.json
), which contains theinputsHash
and thevalueHash
.