Repository navigation
Resolve mise wrappers to @latest on each run - #10168
calledtoconstruct wants to merge 4 commits into
Conversation
3ad79ac to
f3eb1da
Compare
|
Rebased onto current quattro. Kept the command-name guard and |
f3eb1da to
3d19a8d
Compare
|
| package=$(sed -n 's/^mise use -g --quiet "\(.*\)" || exit 1$/\1/p' <<<"$contents") | ||
| bin=$(sed -n 's/^exec mise x ".*" -- "\(.*\)" "\$@"$/\1/p' <<<"$contents") |
There was a problem hiding this comment.
Escaped wrappers remain stale. If an existing wrapper has a shell-special character in its package or binary name, the installer writes that argument with shell escaping instead of double quotes. These patterns then skip the wrapper, so it keeps using its bare spec and may remain on an older installed version. Please handle the escaped form as well.
mise takes a version after the options, as http:muse[...]@latest, and a spec with options goes stale under a bare `mise use -g` exactly like one without: with github:jqlang/jq[bin=jq]@jq-1.7.1 installed, the bare spec kept running 1.7.1 and the @latest one moved to 1.8.2. Leaving those specs alone kept Muse's wrapper on the behaviour this change fixes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An @ inside [options], as in a URL, made the spec read as already versioned, so its wrapper stayed bare and stale. Only what follows the options can be a version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
Reviewed and verified on a disposable Omarchy worker with real mise 2026.9.11: this fixes #10112. With I pushed two commits to the branch:
Not changed: the Greptile note that the migration skips wrappers whose arguments were written with Related: #9596 replaces these wrappers with mise's native lazy shims, which would make this change moot if it lands. #14880, #9583, #13614, #13769 and #9175 each change the wrapper's Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium over two rounds. Codex raised the |
quattro added Kimi after this branch was cut. Its Remove Preinstalls check anchored on the bare "npm:@moonshot-ai/kimi-code" spec, so it would have left behind every Kimi wrapper the installer now writes; it accepts the @latest form now, as the cursor-agent check already does. The Kimi tests expect the @latest spec too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This branch had stopped merging into The conflict was in Checked on a disposable Omarchy worker with real mise 2026.9.11, with Reviewed by Claude Opus 5.5, with a second opinion from Codex Medium on the merge. Codex found no defects. It agreed that nothing else |
|
This branch no longer merges into #9596 (da2db1a) replaced the handwritten wrappers with mise's native lazy shims. The default tools are now declared in Landing this branch on What was checked: the diff against current Thank you, @calledtoconstruct. This PR diagnosed the stale-version problem correctly. It's now waiting on the maintainer, and I've recommended closing it, along with #10112, as fixed by #9596. |
mise use -g <tool>reaffirms the installed pin, so wrappers generated byomarchy-mise-installcould stay on a stale version even withMISE_MINIMUM_RELEASE_AGE=0. Use<tool>@latest(including scoped npm packages), leave already-versioned specs alone, and rewrite existing quiet wrappers.Fixes #10112