exec_auto_install=false is ignored for tools declared in config; falls back to PATH with only a warning
exec_auto_install=false (and MISE_EXEC_AUTO_INSTALL=0) correctly blocks auto-install for tools passed as CLI arguments to mise exec/mise x (fixed in #6788), but does not block it for tools declared in mise.toml's [tools] table. Instead of failing, it prints a warning and silently falls through to whatever same-named binary is next on PATH — which can be an entirely different, unpinned version.
Impact
This makes exec_auto_install=false unsafe to rely on for its stated purpose (avoiding an install and knowing you got what's pinned) whenever the tool comes from config rather than the command line — the caller gets no error and no correct guarantee, just a warning that's easy to miss in non-interactive contexts (e.g. a git hook, at commit time).
# mise.toml
[tools]
cocogitto = "5.1.0" # not installed locally$ MISE_EXEC_AUTO_INSTALL=0 mise exec -- cog --version
mise WARN missing: [email protected]
cog 6.1.0 # some other cog found on PATH, not the pinned 5.1.0 — no error, exit 0Expected: same behavior as the CLI-argument case fixed in #6788 — a clear, fast failure that no version is available, since auto-install is disabled.
Workaround foundMISE_OFFLINE=1 does fail correctly and fast (ERROR ... offline mode is enabled, exit 1, no network attempt), since it blocks all network unconditionally rather than going through the exec_auto_install check specifically. This works but is broader than intended — it also blocks any other legitimate network use mise exec might have needed for a reason unrelated to this specific tool.
Tested with a populated mise.lock and --locked combined with exec_auto_install=false/MISE_EXEC_AUTO_INSTALL=0 against a tool missing from a fresh data dir — still silently resolves to whatever's on PATH instead of failing. The two settings are unrelated: --locked controls which source an install is allowed to come from, not whether an install (or its absence) is enforced.
#8582 shows a similar missing_args_only-style CLI-argument-tools-vs-config-tools distinction caused a bug in the opposite direction (mise prepare not installing config tools that should have been installed) — this may share a root cause with that fix.
Source: jdx/mise