bug: mise run
doesn't track deleted, etc. dependencies
#4209
Unanswered
arxanas
asked this question in
Troubleshooting and bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I didn't see anything obviously related in Discussions.
Setup:
Current behavior:
The correct behavior would be to rebuild
out
in this case, which we can demonstrate by running with--force
and observing a behavioral difference:You might call this the "Makefile problem"? Fundamentally, you need to track the old state of the build graph to determine when the build graph has changed.
The easiest solution is probably to hash the inputs and outputs and store the mapping somewhere. On a rebuild, recompute the input hashes, look up the corresponding output hashes, and skip the rebuild if they match.
ninja
😉.There's also all the incidental problems as per mtime comparison considered harmful. For example, I didn't check, but I assume that
mise
will also fail to rebuild when a file is moved but its mtime hasn't changed.Beta Was this translation helpful? Give feedback.
All reactions