Repository navigation
Conversation
When ~/.local/bin precedes mise shims, mise x -- <bin> re-enters the wrapper forever. Resolve with mise which --tool and exec that path (omacom#13090). Co-authored-by: AnPod <[email protected]>
Co-authored-by: AnPod <[email protected]>
c2db377 to
5c87a33
Compare
|
Closing this as a duplicate of #13090, which makes the same change to the same base branch and was opened four days earlier. What makes them the same. Both change the wrapper that Which fix the maintainer is choosing between. Several open pull requests fix the self-exec loop in #13040: #8692, #13090, #13614 and #13769. As the review on #13090 explains, Reviewed by Claude Opus 5.5 by reading both diffs side by side. Codex Medium checked the duplicate call separately. No tests were run, because closing a duplicate doesn't depend on them. If you think this is wrong — for example, if this branch does something #13090 doesn't — say so and it can be reopened. |
Summary
When
~/.local/binprecedes mise’s shims,mise x -- <bin>resolves back into the Omarchy wrapper and loops forever in the same PID.Wrappers now run
mise which --tool <pkg> <bin>and exec that absolute path. A migration regenerates wrappers still on the bare-name template.Fixes #13090
Test plan
test/shell.d/mise-install-test.shtest/shell.d/mise-wrapper-abspath-migration-test.shtest/shell.d/mise-wrapper-quiet-migration-test.shtest/shell.d/default-agent-test.sh(lazy stubs)