Skip to content

fix: update mise-versions URL to use /tools/ prefix#7378

Merged
jdx merged 2 commits into
mainfrom
fix/versions-host-url-path
Dec 18, 2025
Merged

fix: update mise-versions URL to use /tools/ prefix#7378
jdx merged 2 commits into
mainfrom
fix/versions-host-url-path

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Dec 18, 2025

Summary

  • Updates the versions host URL from mise-versions.jdx.dev/:tool.toml to mise-versions.jdx.dev/tools/:tool.toml
  • Updates the python precompiled URL to use the /tools/ prefix as well
  • Updates the e2e test to match the new URL pattern

Test plan

  • Verify versions host fetches work with the new URL path
  • Verify python precompiled data fetches work

🤖 Generated with Claude Code


Note

Update versions host and Python precompiled fetch URLs to mise-versions.jdx.dev/tools/... and move install tracking to mise-versions.jdx.dev, adjusting e2e test accordingly.

  • Versions Host:
    • Update fetch URL to https://mise-versions.jdx.dev/tools/{tool}.toml in src/versions_host.rs.
    • Change install tracking endpoint to https://mise-versions.jdx.dev/api/track.
  • Python Plugin:
    • Fetch precompiled index from https://mise-versions.jdx.dev/tools/{url_path} in src/plugins/core/python.rs.
  • E2E Tests:
    • Adjust e2e/cli/test_ls_cache expectations to new /tools/ URL.

Written by Cursor Bugbot for commit 2439253. This will update automatically on new commits. Configure here.

Copilot AI review requested due to automatic review settings December 18, 2025 01:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the mise-versions API endpoint to use the /tools/ prefix in the URL path structure. This change standardizes the URL format across the codebase from mise-versions.jdx.dev/:tool.toml to mise-versions.jdx.dev/tools/:tool.toml.

  • Updates versions host URL pattern to include /tools/ prefix
  • Updates Python precompiled data fetch URL to match new pattern
  • Updates e2e test assertions to verify new URL structure

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/versions_host.rs Changes versions host URL format to include /tools/ prefix
src/plugins/core/python.rs Updates Python precompiled data URL to use /tools/ prefix
e2e/cli/test_ls_cache Updates test assertions to expect new URL format with /tools/ prefix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Change the versions host URL from mise-versions.jdx.dev/:tool.toml
to mise-versions.jdx.dev/tools/:tool.toml for better organization.

Also updates the python precompiled URL to use the /tools/ prefix.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jdx jdx force-pushed the fix/versions-host-url-path branch from f4539ac to 7282953 Compare December 18, 2025 01:57
Comment thread src/versions_host.rs

let url = "https://mise-tools.jdx.dev/api/track";
let url = "https://mise-versions.jdx.dev/api/track";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Install tracking endpoint host likely wrong

track_install_async changes the tracking URL from mise-tools.jdx.dev/api/track to mise-versions.jdx.dev/api/track, which is unrelated to the /tools/ path update and may point at a host that doesn’t serve the tracking API. This can silently break install tracking when use_versions_host_track is enabled.

Fix in Cursor Fix in Web

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 18, 2025

Hyperfine Performance

mise x -- echo

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.12.10 x -- echo 20.6 ± 0.5 19.9 24.7 1.00
mise x -- echo 21.2 ± 0.5 20.1 22.8 1.03 ± 0.03

mise env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.12.10 env 20.1 ± 0.9 19.2 29.6 1.00
mise env 20.8 ± 0.9 19.6 27.6 1.03 ± 0.06

mise hook-env

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.12.10 hook-env 20.2 ± 0.4 19.3 22.3 1.00
mise hook-env 20.9 ± 0.5 19.8 23.3 1.03 ± 0.03

mise ls

Command Mean [ms] Min [ms] Max [ms] Relative
mise-2025.12.10 ls 17.8 ± 0.6 16.8 23.1 1.00
mise ls 18.3 ± 0.5 17.3 20.2 1.02 ± 0.04

xtasks/test/perf

Command mise-2025.12.10 mise Variance
install (cached) 112ms 112ms +0%
ls (cached) 67ms 68ms -1%
bin-paths (cached) 74ms 75ms -1%
task-ls (cached) 285ms 291ms -2%

@jdx jdx merged commit 252514a into main Dec 18, 2025
28 checks passed
@jdx jdx deleted the fix/versions-host-url-path branch December 18, 2025 03:08
jdx pushed a commit that referenced this pull request Dec 18, 2025
### 🚀 Features

- **(alias)** rename alias to tool-alias, add shell-alias command by
@jdx in [#7357](#7357)
- **(upgrade)** display summary of upgraded tools by @jdx in
[#7372](#7372)
- **(vfox)** embed vfox plugin Lua code in binary by @jdx in
[#7369](#7369)

### 🐛 Bug Fixes

- **(aqua)** add start_operations for progress reporting by @jdx in
[#7354](#7354)
- **(github)** improve asset detection for distro-specific and Swift
artifacts by @jdx in [#7347](#7347)
- **(github)** clean up static_helpers.rs and fix archive bin= option by
@jdx in [#7366](#7366)
- **(http)** add start_operations for progress reporting by @jdx in
[#7355](#7355)
- **(lockfile)** place lockfile alongside config file by @jdx in
[#7360](#7360)
- **(progress)** add start_operations to core plugins by @jdx in
[#7351](#7351)
- **(ruby-install)** Use ruby_install_bin to update by @calebhearth in
[#7350](#7350)
- **(rust)** add release_url for rust versions by @jdx in
[#7373](#7373)
- **(schema)** add `tool_alias`, mark `alias` as deprecated by @SKalt in
[#7358](#7358)
- **(toolset)** filter tools by OS in list_current_versions by @jdx in
[#7356](#7356)
- **(ubi)** only show deprecation warning during installation by @jdx in
[#7380](#7380)
- **(ui)** remove noisy "record size" message during install by @jdx in
[#7381](#7381)
- update mise-versions URL to use /tools/ prefix by @jdx in
[#7378](#7378)

### 🚜 Refactor

- **(backend)** unified AssetMatcher with checksum fetching by @jdx in
[#7370](#7370)
- **(backend)** deprecate ubi backend in favor of github by @jdx in
[#7374](#7374)
- **(toolset)** decompose mod.rs into smaller modules by @jdx in
[#7371](#7371)

### 🧪 Testing

- **(e2e)** fix and rename ubi and vfox_embedded_override tests by @jdx
in
[052ea40](052ea40)

### 📦 Registry

- add vfox-gcloud backend for gcloud by @jdx in
[#7349](#7349)
- convert amplify to use github backend by @jdx in
[#7365](#7365)
- add github backend for djinni tool by @jdx in
[#7363](#7363)
- switch glab to native gitlab backend by @jdx in
[#7364](#7364)
- add s5cmd by @jdx in [#7376](#7376)

### Chore

- **(registry)** disable flaky tests for gitu and ktlint by @jdx in
[64151cb](64151cb)
- resolve clippy warnings and add stricter CI check by @jdx in
[#7367](#7367)
- suppress dead_code warnings in asset_matcher module by @jdx in
[#7377](#7377)

### New Contributors

- @calebhearth made their first contribution in
[#7350](#7350)
jekis913 added a commit to jekis913/mise that referenced this pull request Dec 18, 2025
* upstream/main:
  fix(ui): remove noisy "record size" message during install (jdx#7381)
  test(e2e): fix and rename ubi and vfox_embedded_override tests
  fix: update mise-versions URL to use /tools/ prefix (jdx#7378)
  fix(ubi): only show deprecation warning during installation (jdx#7380)
  registry: add s5cmd (jdx#7376)
  chore: suppress dead_code warnings in asset_matcher module (jdx#7377)
  refactor(backend): deprecate ubi backend in favor of github (jdx#7374)
  fix(rust): add release_url for rust versions (jdx#7373)
  feat(vfox): embed vfox plugin Lua code in binary (jdx#7369)
  refactor(backend): unified AssetMatcher with checksum fetching (jdx#7370)
  feat(upgrade): display summary of upgraded tools (jdx#7372)
  fix(github): clean up static_helpers.rs and fix archive bin= option (jdx#7366)
  refactor(toolset): decompose mod.rs into smaller modules (jdx#7371)
  chore: resolve clippy warnings and add stricter CI check (jdx#7367)
  registry: switch glab to native gitlab backend (jdx#7364)
  fix(ruby-install): Use ruby_install_bin to update (jdx#7350)
  registry: add github backend for djinni tool (jdx#7363)
  registry: convert amplify to use github backend (jdx#7365)
  chore(registry): disable flaky tests for gitu and ktlint
@wtfiwtz
Copy link
Copy Markdown

wtfiwtz commented Dec 19, 2025

@jdx how do you migrate older versions of mise to the new URL with /tools/ included? I've disabled MISE_USE_VERSIONS_HOST for now but perhaps using MISE_VERSION to force the latest MISE version could also work.
We are using https://www.netlify.com/ (which includes mise by default in its build environment to install tools like Python)

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.

4 participants