Skip to content

fix(self-update): read mise releases from mise-versions and download from github.com - #14464

Merged
jdx merged 1 commit into
mainfrom
claude/self-update-mirror
Oct 14, 2026
Merged

jdx merged 1 commit into
mainfrom
claude/self-update-mirror

Conversation

@jdx

@jdx jdx commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

https://entire.io/gh/jdx/mise/trails/748

Problem

mise self-update made three requests to api.github.com: the release lookup (/repos/jdx/mise/releases/tags/v{version}), then the packslip and the archive downloaded through API asset URLs. Without a GitHub token that budget is 60 requests an hour, shared with everything else mise and other tools do from the same IP, so self-update could fail with a 403 rate-limit error even though nothing about it needed the API. On Windows, refreshing mise-shim.exe after an update made the same API calls again.

Change

For mise's own releases (the default self_update.repository = "jdx/mise" on api.github.com), self-update now:

  • reads the release from mise-versions, which mirrors GitHub's release data, and
  • downloads packslip.sigstore.json and the archive from github.com/jdx/mise/releases/download/…, which isn't API-rate-limited.
$ MISE_DEBUG=1 mise self-update 2026.9.16 --yes
DEBUG GET https://mise-versions.jdx.dev/api/github/repos/jdx/mise/releases/v2026.9.16 200 OK
DEBUG GET https://github.com/jdx/mise/releases/download/v2026.9.16/packslip.sigstore.json
DEBUG GET https://github.com/jdx/mise/releases/download/v2026.9.16/mise-v2026.9.16-linux-x64.tar.gz
Updated mise to 2026.9.16

Trust doesn't change. The release data doesn't need to be trusted: the archive is still verified against its packslip and its zipsign signature before anything is replaced, and the download URLs mise-versions returns are pinned to github.com/jdx/mise.

A customised self_update.api_url or self_update.repository, or use_versions_host = false, keeps the direct API and API asset downloads. Those sources may be private or GitHub Enterprise.

Validation

cli/test_self_update_install (real updates to 2026.9.16, 2026.9.3 and 2026.9.2) now runs the updater with debug logging and fails if it requests anything from api.github.com. It passes locally with the output above. The Windows-only shim path was checked with cargo check --target x86_64-pc-windows-gnu.

🤖 Generated with Claude Code

AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5-5; version: claude-code_2-1-295_agent.


Note

Medium Risk
Changes network endpoints for the default self-update path (release lookup and downloads) but verification and custom-source behavior are preserved; wrong URL routing could break updates or downloads.

Overview
mise self-update no longer hits api.github.com for the default jdx/mise source when mise-versions is enabled. Release metadata comes from mise-versions, and packslip plus the release archive (and Windows mise-shim.exe) download via github.com/.../releases/download/... instead of API asset URLs—avoiding the unauthenticated 60 req/h API cap while keeping the same packslip and zipsign checks.

A shared fetch_release path and SelfUpdateSource::uses_versions_host / asset_url centralize that routing; custom self_update.api_url, non-default repos, or disabled versions host still use the GitHub API and API asset endpoints. E2e self_update.py runs with debug logging and fails if any GET https://api.github.com/ appears in output.

Reviewed by Cursor Bugbot for commit 993f06c. Bugbot is set up for automated code reviews on this repo. Configure here.

…from github.com

Self-update looked its release up on api.github.com and downloaded the
packslip and archive through API asset URLs: three requests against the
unauthenticated 60-an-hour budget. mise's own releases now come from
mise-versions, and the files from github.com release downloads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Entire-Checkpoint: 01M4Y5TNZVS1JD76W0P22XMAF3
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 15 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 005ea9f3-05b1-4f3f-98b0-506c1a0bdf4b
📥 Commits

Reviewing files that changed from the base of the PR and between 9d09f51 and 993f06c.

📒 Files selected for processing: 3
  • e2e/fixtures/self_update.py
  • src/cli/self_update.rs
  • src/cli/version.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[High impact] The PR appears safe to merge; no actionable issues were found.

Summary

Routes default self-update release lookups through mise-versions and downloads assets from GitHub’s public release URLs.

  • Default mise updates get release details from the mirror and assets from GitHub.

No actionable issues found. Tests were not run during this review.

Reviews (1) · Last reviewed commit: "fix(self-update): read mise releases fro..." · Reviewed by Greptile

@jdx
jdx merged commit d39ff65 into main Oct 14, 2026
50 of 54 checks passed
@jdx
jdx deleted the claude/self-update-mirror branch October 14, 2026 22:44
@github-actions

Copy link
Copy Markdown
Contributor

Instruction counts

Nothing was compared, and so nothing was gated. No series appears on both sides: either the base has no measurements recorded, or the two were measured on different runner classes, which are deliberately not comparable — counts shift between machine types by more than a real regression does.

New, nothing to compare against: env on jdx-perf-v1-ubuntu24.04-x64-mise-rust1.97.1-img5263c143, hook-env on jdx-perf-v1-ubuntu24.04-x64-mise-rust1.97.1-img5263c143, ls on jdx-perf-v1-ubuntu24.04-x64-mise-rust1.97.1-img5263c143, registry on jdx-perf-v1-ubuntu24.04-x64-mise-rust1.97.1-img5263c143, startup on jdx-perf-v1-ubuntu24.04-x64-mise-rust1.97.1-img5263c143

Only instruction counts gate. Wall clock is shown for context — on identical hardware it moves 4-20% run to run.

Measured by tak — instruction-counted CLI benchmarks, stored in this repository's git notes.

993f06cef102 vs 9d09f51e7f77 · measured on the runner, not pushed to the history.

mise-en-dev added a commit that referenced this pull request Oct 15, 2026
<!-- entire-trail-link-start -->
https://entire.io/gh/jdx/mise/trails/726
<!-- entire-trail-link-end -->

### 🚀 Features

- **(bootstrap)** add --upgrade to upgrade packages and tools by @jdx in
[#14433](#14433)
- **(env)** add --paths to list the PATH entries mise manages by @jdx in
[#14429](#14429)
- **(install)** download pinned versions from mise.jdx.dev with GitHub
fallback by @jdx in [#14446](#14446)

### 🐛 Bug Fixes

- **(aqua)** read GitHub-hosted aqua registries from
raw.githubusercontent.com by @jdx in
[#14470](#14470)
- **(backend)** build packslip after versions_host_applies was removed
by @jdx in
[8bdf9ae](8bdf9ae)
- **(backend)** resolve packslip prefixes like `latest` by @jdx in
[#14467](#14467)
- **(bootstrap)** render incoming direction for ufw interface rules by
@jdx in [#14480](#14480)
- **(dotfiles)** show planned file actions before the apply prompt by
@jdx in [#14430](#14430)
- **(dotfiles)** speed up flaky objects_at test by @jdx in
[#14439](#14439)
- **(dotfiles)** capture changed files of copy-mode groups with dot add
--changed by @jdx in [#14436](#14436)
- **(exec)** ask mise-versions for GitHub releases when auto-installing
from exec and shims by @jdx in
[#14458](#14458)
- **(github)** stop falling back to api.github.com when mise-versions
misses by @jdx in [#14460](#14460)
- **(github)** read the checksum-mismatch hint's digest from
mise-versions by @jdx in
[#14481](#14481)
- **(github)** list git tags from mise-versions instead of
api.github.com by @jdx in
[#14461](#14461)
- **(github)** verify attestations from mise-versions without
api.github.com fallbacks by @jdx in
[#14469](#14469)
- **(lock)** ignore the host's implicit compile default for other lock
platforms by @jdx in [#14432](#14432)
- **(lock)** download artifacts for provenance checks from github.com,
not the API by @jdx in [#14465](#14465)
- **(oci)** require root for apt bootstrap packages and show dpkg output
on failure by @jdx in [#14447](#14447)
- **(pipx)** preserve uv graph locking during global upgrades by
@wislertt in [#14426](#14426)
- **(ruby)** look up the latest ruby-build release through mise-versions
by @jdx in [#14471](#14471)
- **(self-update)** read mise releases from mise-versions and download
from github.com by @jdx in
[#14464](#14464)
- **(shim)** allow a few repeated fallback handoffs in one process by
@jdx in [#14475](#14475)
- **(upgrade)** leave lazy tools that are not installed to their first
run by @ryanrhughes in [#14422](#14422)
- **(upgrade)** skip version lookups for lazy tools a bare upgrade
leaves alone by @jdx in [#14444](#14444)
- avoid false "stack limit reached" on musl builds by @jdx in
[#14450](#14450)

### 📚 Documentation

- recommend committing mise.lock so CI and Docker skip version lookups
by @jdx in [#14453](#14453)

### ⚡ Performance

- **(backend)** take release tags from the versions host instead of
listing or guessing them by @jdx in
[#14442](#14442)
- **(backend)** read the registry tool's version list for an explicit
backend arg by @jdx in [#14459](#14459)
- **(backend)** stop re-downloading what packslip resolution already
verified by @jdx in [#14466](#14466)
- **(github)** reuse mirrored attestations and skip mise-versions for
asset-less latest releases by @jdx in
[#14443](#14443)
- **(github)** list releases and tags from mise-versions' whole lists by
@jdx in [#14477](#14477)
- **(install)** skip refetching version lists a cached copy already
answers by @jdx in [#14457](#14457)
- **(install)** reuse cached version lists for the tool's release-age
window by @jdx in [#14484](#14484)
- **(install)** keep the versions index and pipx's latest release for
the release-age window by @jdx in
[#14485](#14485)
- **(outdated)** resolve `latest` without refetching the version list by
@jdx in [#14456](#14456)
- **(outdated)** resolve many registry tools with one request to the
mise-versions index by @jdx in
[#14473](#14473)
- **(python)** list python versions from mise-versions instead of
cloning pyenv by @jdx in
[#14455](#14455)
- **(versions-host)** send install tracking and python lists to static
assets by @jdx in [#14441](#14441)

### 📦️ Dependency Updates

- bump jactionlint to 2.2.0 and mbx to 1.24.0 by @jdx in
[#14448](#14448)

### 📦 Registry

- install native-sdk from npm so the native command works by @jdx in
[#14431](#14431)
- add gdal (conda:libgdal-core) by @ivan-ivkovic in
[#14440](#14440)

### Ci

- prune unused release folders from the mise.jdx.dev CDN bucket by @jdx
in [#14445](#14445)
- check R2 credentials on every prune run by @jdx in
[#14451](#14451)
- stop aube-lock from re-committing on Cargo-only Renovate PRs by @jdx
in [#14482](#14482)

### Security

- **(deps)** update rustls to 0.23.46 by @jdx in
[#14434](#14434)
- **(task)** require trust before rendering a remote task file by
@JamBalaya56562 in [#14416](#14416)

### New Contributors

- @ivan-ivkovic made their first contribution in
[#14440](#14440)

## 📦 Aqua Registry Updates

### New Packages (2)

- [`btwld/fvm`](https://github.com/btwld/fvm)
- [`tailscale/tailcat`](https://github.com/tailscale/tailcat)

### Updated Packages (1)

- [`k1LoW/tbls`](https://github.com/k1LoW/tbls)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant