Files
w3cjandClaude Opus 5.5 b5c58d82b8 fix(tools): a platform's missing download (a 404) steps the tool back, not failing the resolve
mise 2026.11 (devvm's host mise since 0.2.0-rc.1) downloads some files as
it locks them and fails the whole `mise lock`, writing nothing, when one is
a 404. So while Node 24.23.0 had no musl builds on unofficial-builds,
Versions.Resolve returned tools_resolve_failed: a first run stopped, and
the daily check and devvm tools update kept their versions. The step back
only handled a lock that succeeded with an entry lacking a download.

- lockAll: after a full lock whose own log shows a 404, lock each tool on
  its own, and a tool that still fails one platform at a time, so its entry
  lacks only the missing platform and stepBack steps it back. Any other
  failure in the fallback is resolveFailed's.
- lockTool: one lock, its log started again, missing only on its own 404.
- olderWithDownload/lockVersions: when the step back's lock of its older
  versions 404s, lock them one at a time.
- logSays: shared by resolveFailed.
- Stub mise: MISE_STUB_FAIL=404 and MISE_STUB_OFFLINE_TOOL; per-tool,
  per-platform merging checked against real mise 2026.11.14.
- Tests: TestRefreshStepsBackPastA404, TestMise404.

Checked against real mise 2026.11.14: node steps back to 24.22.3, the
other 12 tools at their newest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 07:35:02 -07:00
..