mise watch -t <task> runs in .config
directory (not <project>
) when using <project>/.config/mise.toml
| <project>/.config/mise.*.toml
#2631
Labels
bug
Something isn't working
Describe the bug
mise watch -t <task>
runs in wrong directory when using<project>/.config/mise.toml
|<project>/.config/mise.*.toml
.To Reproduce
<project>/.config/mise.toml
.mise watch -t <task>
Now the task runs and watches in
<project>/.config
.Expected behavior
Expect task directory to match
mise run <task>
and be<project>
.Reproduce with script
Now notice:
⚠️
✅
mise run cat
mise watch -t cat
Because for the second it tries to watch and read
.config/example.txt
.Additional context
It seems when looking at src/config/config_file/mise_toml.rs that there is a check for
dir.ends_with(".config/mise")
, but notdir.ends_with(".config")
afterwards.And I can confirm that in the example above moving the file from
.config/mise.toml
to.config/mise/config.toml
avoids the issue. (mkdir .config/mise && mv ./.config/mise.toml ./.config/mise/config.toml
for the script.)`mise doctor` output
The text was updated successfully, but these errors were encountered: