Open hofstee opened 7 months ago
The main problem seems to be that it only works for files. Not for directories
I can't guess why this decision was made, but I also encountered this problem and the need to rely on the directory modification date, since files can be added/removed in it. https://github.com/jdx/mise/blob/230897c41210502f69ed5c4270f13d6efc416f89/src/cli/run.rs#L513-L514
Describe the bug
mise
doesn't appear to be respecting thesources
andoutputs
to skip running a task.To Reproduce I have this in my
mise.toml
Expected behavior The docs seem to suggest that
bundle_id
should be skipped if.bundle_id
is newer than any.xcodeproj
file, but it's running every time I run thereload
task. Runningmise run bundle_id
also re-runs the command (though maybe that last bit is intentional?). It's also worth noting that.xcodeproj
files are really directories.mise doctor
outputAdditional context I was originally trying to figure out how to get an
[env]
variable from themise.toml
into the taskrun
command, but since the command takes a couple seconds to run and there's no caching for environment variables (as mentioned in https://github.com/jdx/mise/issues/1261) I tried to make it output to a file instead so I could skip the task when the dependencies weren't modified.