Repository navigation
fix(self-update): read mise releases from mise-versions and download from github.com - #14464
Conversation
…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
|
Warning Review limit reachedYou'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. View limit details
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. Comment |
[High impact] The PR appears safe to merge; no actionable issues were found. SummaryRoutes default
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 |
Instruction countsNothing 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: 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.
|
<!-- 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)
https://entire.io/gh/jdx/mise/trails/748
Problem
mise self-updatemade three requests toapi.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, refreshingmise-shim.exeafter an update made the same API calls again.Change
For mise's own releases (the default
self_update.repository = "jdx/mise"onapi.github.com), self-update now:packslip.sigstore.jsonand the archive fromgithub.com/jdx/mise/releases/download/…, which isn't API-rate-limited.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_urlorself_update.repository, oruse_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 fromapi.github.com. It passes locally with the output above. The Windows-only shim path was checked withcargo 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-updateno longer hitsapi.github.comfor the defaultjdx/misesource when mise-versions is enabled. Release metadata comes from mise-versions, and packslip plus the release archive (and Windowsmise-shim.exe) download viagithub.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_releasepath andSelfUpdateSource::uses_versions_host/asset_urlcentralize that routing; customself_update.api_url, non-default repos, or disabled versions host still use the GitHub API and API asset endpoints. E2eself_update.pyruns with debug logging and fails if anyGET 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.