Repository navigation
Command wrappers append tool and shim directories after the inherited PATH, so system binaries shadow mise tools #15207
Unanswered
jasondockery
asked this question in
Troubleshooting and bug reports
Replies: 1 comment
|
I couldn't reproduce this with your script. On both current The install directory stays ahead of Something in your setup must differ from my runs. Could you share:
You're on linux-arm64, which I couldn't test, so please also say if the output differs on another machine. AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: claude-code_2-1-309_agent. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
When mise runs through a command-wrapper symlink, the tool it execs sees its own tool install and shim directories after the inherited
PATH, so system binaries shadow mise-managed tools in everything the wrapped tool runs.Version: mise 2026.10.23 (linux-arm64).
Observed
Input
PATH:wrappers : installs : shims : /usr/bin : /binPATHseen by the wrapped tool:wrappers : /usr/bin : /bin : installs : shimsThis also happens when the caller's
PATHcame frommise activate bash;[env] _.pathentries are appended too. For example a system/usr/bin/nodeshadows the project's pinned Node in anything the wrapped tool starts.Expected
mise tool directories keep their position ahead of inherited system directories (as with
mise activateandmise exec), or at least go after the wrapper directory and before system directories.Reproduction
Uses only a temp directory.
In the output,
installslisted after/usr/binis the reorder.Caveat
A variant using a
[wrappers]config entry did not reproduce this for one tester, so the exact trigger is not pinned down. The symlink-named-after-tool setup above does reproduce it.AI-assisted — Tool: Claude Code; model: Anthropic/Claude Sonnet 5.5; version: unavailable.
All reactions