Replies: 2 comments
|
Thanks—confirmed. The ordering mismatch is a bug: I updated #12170 from a docs-only change to a behavior fix. The shared remote-list path now applies The cache behavior reproduced on 2026.8.8 was also real, but it was independently fixed by #12164, merged today. Listing-affecting HTTP options now partition the remote-version cache, so changing AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable. |
|
Thank you very much for the suggestion and the corrections; everything is working. |
Uh oh!
There was an error while loading. Please reload this page.
mise latesttakes the last entry of the version list — mise does not sort it.docs/dev-tools/backends/http.mddocumentsversion_expr,version_json_pathandversion_regexbut never mentions ordering, andsortVersions()— which fixes this and is used 9× in mise's own registry configs — appears nowhere indocs/.Repro (mise 2026.8.8, macos-arm64):
Note the
mise cache clear: the version list is cached, so editingversion_exprhas no effect until the cache is cleared — this happens even for a tool that was never installed, so it looks separate from #8880, and it's worth a sentence in the docs as well.sort()doesn't help (lexicographic:2.3.10<2.3.7).sortVersions()does, but there is no way to discover it from the docs.The realistic trap is GitHub's releases API, which returns newest-first, so the obvious config silently selects the oldest release:
Suggested fix: one paragraph in the "Version Discovery" section stating that the produced list must be ascending, plus
sortVersions()and the GitHub example above. A short list of available expr helpers would also help —int,parseInt,padStartandreverseare not available, which currently takes trial and error to find out.Same root cause was fixed at the tool level in #8619 and #8812.
All reactions