mise use --global writing on conf.d instead of global config.toml #5842
Replies: 2 comments
yes, but it's probably easier said than done |
|
This is fixed on main — #11633 — and will ship in the next release. To confirm your reading of it: yes, Why it happened
That is also exactly why an empty The fix is one predicate on the return value, so an unqualified candidate now falls through to Two things worth knowing for your setupYour working case is unchanged. When no global config exists yet, the file created is What else the same change fixesEvery caller of
Reading is untouched — drop-ins are still discovered and loaded exactly as before. The filter only decides where writes go. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
With this config everything is fine. Version 1.9.2 is taken from local mise.toml file and used.
If local mise.toml is deleted then 1.9.1 from global config.toml is taken:
Now if I set a global version it's written in mise.toml:
Everything fine until this point. But if I remove .config/mise/mise.toml, default version from .config/mise/conf.d/default-opentofu.toml is loaded.
The weird point is when I try to set a global version again from command line. It's wrote on ~/.config/mise/conf.d/default-opentofu.toml instead of ~/.config/mise/mise.toml:
If no files exist in ~/.config/mise/conf.d, then global version is set correctly in ~/.config/mise/mise.toml. mise use --global should use ~/.config/mise/mise.toml as specified in the man page, shouldn't it?
All reactions