Doesn't respect $XDG_CONFIG_HOME nor even $MISE_CONFIG_DIR
#7015
|
Not too sure what is going on here. It supposedly respects the XDG paths spec: https://mise.jdx.dev/directories.html But I don't see it function in practice. In addition, the > mise --version
_ __
____ ___ (_)_______ ___ ____ ____ / /___ _________
/ __ `__ \/ / ___/ _ \______/ _ \/ __ \______/ __ \/ / __ `/ ___/ _ \
/ / / / / / (__ ) __/_____/ __/ / / /_____/ /_/ / / /_/ / /__/ __/
/_/ /_/ /_/_/____/\___/ \___/_/ /_/ / .___/_/\__,_/\___/\___/
/_/ by @jdx
2025.11.3 linux-x64 (2025-11-10)
> export MISE_CONFIG_DIR=$XDG_CONFIG_HOME/mise
> cat $MISE_CONFIG_DIR/config.toml
[tools]
java = "temurin-21"
maven = "latest"
node = "latest"
[settings]
idiomatic_version_file_enable_tools = ["node"]
[env]
; mise config list
Path Tools |
Replies: 3 comments 2 replies
|
I have similar problem but instead of not detecting the config it keep detecting the default global config at |
|
The reading half of this was fixed by #7271, as @risu729 noted. The writing half stayed broken until now, and it failed silently, so it is worth closing the loop here. With The cause was that mise had three separate implementations of the same "which config file do I write to" rule, and only one of them applied the exclusion added for this discussion. Two changes put them on the same footing:
Both merged 2026-08-02. Reproduced beforehand on v2026.7.15 and v2026.7.18, on Linux and Windows. Not in a release yet — v2026.8.0 was cut a few hours before they merged, so they land in the next one. One thing worth recording for anyone arriving here from a search: |
The reading half of this was fixed by #7271, as @risu729 noted. The writing half stayed broken until now, and it failed silently, so it is worth closing the loop here.
With
MISE_CONFIG_DIRrelocated,mise usecould still choose~/.config/mise/config.tomlas its write target — the very file #7271 stops mise from loading — and write the tool there.mise config lsthen correctly refused to list it, so the tool simply never appeared, with no error anywhere.The cause was that mise had three separate implementations of the same "which config file do I write to" rule, and only one of them applied the exclusion added for this discussion. Two changes put them on the same footing: