Repository navigation
Build user mise shims without network lookups - #16174
Conversation
[Medium impact] The PR appears safe to merge; no blocking issues were found. SummaryBuilds user mise shims without setup-time network lookups.
Reviews (2) · Last reviewed commit: "Merge quattro and drop the stubbed offli..." · Reviewed by Greptile |
|
Reviewed and verified at 9448721; nothing found that needs changing. Reproduced on a disposable Omarchy worker (mise 2026.10.15), running
Second opinion: Codex Medium and muse-spark-1.3-contributor (via pi, thinking high) both reviewed the diff and found nothing to change, and both agreed that leaving the online This is now waiting on the maintainer. |
Quattro removed the mock-mise block in mise-provision-test.sh (omacom#16756) because it couldn't catch a real regression. The offline check added here lived in that block and only tested the stub, so the conflict resolves to quattro's file and this PR is just the install/user/mise.sh change.
Co-authored-by: Ryan Hughes <ryan@heyoodle.com> (cherry picked from commit 4866668)
A shim needs no version resolved, so the reshim after stowing was asking the network for nothing, and stalling or warning without it. Omarchy builds its shims with MISE_OFFLINE=true (omacom/omarchy#16174); do the same.
Offline, mise still tries to resolve "latest" for every lazy tool it has never installed and warns "no versions found" for each, twenty lines on a fresh machine, before building the shim anyway. Omarchy's own offline reshim (omacom/omarchy#16174) logs the same and accepts it. Errors still print at that log level, as a failed install shows.
An offline install stalls in "Finalizing user" because both
mise reshimcalls ininstall/user/mise.shlook up the latest version of every lazy tool Omarchy declares. With no network and an empty cache, each lookup fails or times out; #16158 saw more than ten minutes of it.Both calls now run with
MISE_OFFLINE=true. Reshim builds the lazy shims and the Claude, Codex and Grok account wrappers from the declarations, so it doesn't need those lookups. The setting applies only to these two commands, so first-use installs,auto_updateandmise upgradestill go online.Fixes #16158.
Verified with real mise in isolated homes and empty caches:
unshare -rn): the old commands took 215 s, the new ones 0.04 s, and both built the same 36 shims as an online run. The shim count depends on the mise version.uv) still installs through its shim on first use when the network is there, and gets the same version as after an online reshim.Tools that aren't installed yet log a "no versions found" warning during reshim. It exits 0 and still creates their lazy shims. This covers the version lookups, not a full offline ISO install.