Skip to content

chore: prefer registry shorthands over cargo/npm backends in mise.toml#9595

Merged
jdx merged 4 commits intojdx:mainfrom
risu729:chore/update-tool-backends
May 4, 2026
Merged

chore: prefer registry shorthands over cargo/npm backends in mise.toml#9595
jdx merged 4 commits intojdx:mainfrom
risu729:chore/update-tool-backends

Conversation

@risu729
Copy link
Copy Markdown
Contributor

@risu729 risu729 commented May 4, 2026

Switch several tools in mise.toml and crates/vfox/mise.toml from explicit cargo:/npm: backends to registry shorthands where available:

  • cargo:git-cliffgit-cliff
  • cargo:cargo-instacargo-insta
  • cargo:usage-cliusage (also removes the os restriction)
  • cargo:cargo-releasegithub:crate-ci/cargo-release
  • npm:prettierprettier
  • Remove unnecessary quoting on tool names ("actionlint"actionlint, etc.)
  • Remove commented-out python entry
  • Add crates/vfox/mise.lock and update mise.lock

This avoids relying on the cargo/npm backends (which require a separately-installed toolchain on PATH) for tools that have registry entries backed by aqua/github.

@risu729 risu729 marked this pull request as ready for review May 4, 2026 15:12
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new lockfile for the vfox crate, transitions tool definitions to use shorthands in mise.toml and mise.lock files, and updates several tool versions, including cargo-binstall and cargo-insta. The review feedback highlights a missing lock entry for prettier in the root lockfile following its transition to a shorthand, identifies an unintended version downgrade for git-cliff, and recommends adopting the cargo-release shorthand for better consistency.

I am having trouble creating individual review comments. Click here to see my feedback.

mise.lock (641-643)

high

prettier was removed from the lockfile here but was not added back as a shorthand entry [[tools.prettier]], even though it is still present in mise.toml (line 27). This will result in prettier not being locked to a specific version in the main project. Please ensure mise lock is run to include the locked version and checksums for the new prettier shorthand.

mise.lock (463)

medium

The version of git-cliff has been downgraded from 2.12.0 to 2.10.0 in the lockfile. Since mise.toml specifies latest, this might be an unintended side effect of switching to the shorthand if the registry metadata is not up to date. It is recommended to verify if 2.12.0 can be maintained with the new shorthand.

mise.toml (16)

medium

To be consistent with the other changes in this PR (preferring registry shorthands), you can use the cargo-release shorthand instead of the explicit github: backend. This also allows the key to be unquoted as it is a valid bare key in TOML.

cargo-release = "latest"

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 4, 2026

Greptile Summary

This PR migrates several tools in mise.toml and crates/vfox/mise.toml from explicit cargo:/npm: backends to registry shorthands backed by aqua or GitHub releases, avoiding the need for a separately-installed Rust/Node toolchain on PATH. It also adds a new crates/vfox/mise.lock, updates mise.lock with refreshed checksums and new tool entries, and removes unnecessary quoting on tool names.

Confidence Score: 4/5

Safe to merge with awareness that cargo-insta is now missing arm64 Linux prebuilts under the aqua backend.

A pre-existing P1 (arm64 Linux support regression for cargo-insta) was already surfaced in prior review threads and remains unresolved in this revision; per scoring guidelines a P1 caps confidence at 4/5.

mise.lock — cargo-insta entry has no linux-arm64 platform variants; crates/vfox/mise.lock — git-cliff version (v2.10.0) lags behind root lock (v2.13.1).

Important Files Changed

Filename Overview
mise.toml Switches cargo/npm backends to registry shorthands, removes OS restriction on usage, removes unnecessary quoting and commented-out python entry. Clean changes.
crates/vfox/mise.toml Removes unnecessary quoting from tool names and switches git-cliff/prettier to registry shorthands. cargo:cargo-edit intentionally stays as cargo backend.
mise.lock Adds lock entries for git-cliff (v2.13.1), usage (v3.2.1), github:crate-ci/cargo-release (v1.1.2), prettier (v3.8.3), and cargo-insta (v1.47.2); removes old cargo/npm-backend entries. cargo-insta lock only lists x64 Linux platforms, no arm64 Linux.
crates/vfox/mise.lock New lock file for the vfox workspace. git-cliff resolves to v2.10.0 here vs v2.13.1 in the root mise.lock — the two lockfiles appear to have been generated at different times.
hk.pkl Updates inline comment and three mise x invocations from npm:prettier to prettier, keeping them in sync with the renamed tool entry in mise.toml.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[mise.toml tool entry] --> B{Backend type}
    B -->|cargo:cargo-insta| C1[Old: compile from source
Requires Rust toolchain on PATH
Supports all platforms incl. arm64]
    B -->|cargo-insta shorthand| C2[New: aqua:mitsuhiko/insta
Prebuilt binary
Linux x64 only]
    B -->|cargo:git-cliff| D1[Old: compile from source
Requires Rust toolchain]
    B -->|git-cliff shorthand| D2[New: aqua:orhun/git-cliff
Prebuilt binary
All platforms incl. arm64]
    B -->|cargo:cargo-release| E1[Old: compile from source]
    B -->|github:crate-ci/cargo-release| E2[New: GitHub releases
Prebuilt binary
All platforms]
    B -->|cargo:usage-cli + os constraint| F1[Old: Linux/macOS only
Requires Rust toolchain]
    B -->|usage shorthand| F2[New: aqua:jdx/usage
Prebuilt binary
All platforms incl. Windows]
    B -->|npm:prettier| G1[Old: Requires Node on PATH]
    B -->|prettier shorthand| G2[New: npm:prettier via registry
Same backend, different resolution]
Loading

Reviews (4): Last reviewed commit: "chore: use registry prettier in hk.pkl" | Re-trigger Greptile

Comment thread mise.lock
Comment thread mise.lock
Comment thread mise.lock
@jdx jdx merged commit 37b1ca6 into jdx:main May 4, 2026
36 checks passed
@risu729 risu729 deleted the chore/update-tool-backends branch May 4, 2026 19:03
mise-en-dev added a commit that referenced this pull request May 5, 2026
### 🚀 Features

- **(backend)** support top-level aqua cosign verification by @risu729
in [#9111](#9111)

### 🐛 Bug Fixes

- **(schema)** validate all schema files with draft2020 and strict mode
by @risu729 in [#9594](#9594)
- **(shim)** skip network resolution for installed tool dirs by @jdx in
[#9599](#9599)

### 📚 Documentation

- **(dev-tools)** clarify vfox metadata depends for install hooks by
@risu729 in [#9573](#9573)
- **(plugins)** remove registry submission guidance by @risu729 in
[#9577](#9577)

### 📦️ Dependency Updates

- lock file maintenance by @renovate[bot] in
[#9586](#9586)

### 📦 Registry

- remove bashly asdf fallback by @risu729 in
[#9578](#9578)
- use github backend for rebar by @risu729 in
[#9576](#9576)
- add wasm-tools
([aqua:bytecodealliance/wasm-tools](https://github.com/bytecodealliance/wasm-tools))
by @2xdevv in [#9596](#9596)
- enable symlink_bins for elixir-ls by @AlternateRT in
[#9592](#9592)

### Chore

- **(release)** always append sponsor block to release notes by @jdx in
[#9580](#9580)
- warn on vendored vfox embedded plugins by @risu729 in
[#9588](#9588)
- prefer registry shorthands over cargo/npm backends in mise.toml by
@risu729 in [#9595](#9595)

## 📦 Aqua Registry Updates

### New Packages (2)

-
[`salesforce/reactive-grpc/protoc-gen-reactor-grpc`](https://github.com/salesforce/reactive-grpc)
- [`spinframework/spin`](https://github.com/spinframework/spin)

### Updated Packages (1)

- [`pnpm/pnpm`](https://github.com/pnpm/pnpm)
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.

2 participants