jdx/mise · error
automatic cross-platform provisioning refuses to replace a…
Error message
automatic cross-platform provisioning refuses to replace a custom mise build with an official binary because {} does not match the signed mise {} release checksums; set mise_bin, remote_mise, or bootstrap_command What it means
Before replacing an existing mise binary with an official release, mise hashes the local binary and compares it against the signed release checksum manifest. If the local binary matches no official asset checksum for the current version, it is assumed to be a custom/locally built mise, and auto-provisioning refuses to overwrite it, telling you to configure the binary explicitly.
Solutions
- Set mise_bin explicitly to keep using your custom build
- Set remote_mise to pin which mise is used remotely
- Replace the custom binary with an official release install (install script or package manager artifact that matches signed checksums)
- If the binary should be official, reinstall at the exact running version so its hash matches the signed manifest
Example fix
// before (custom build gets refused)
remote_config.bootstrap_command(...)
// after (declare the custom build)
remote_config.mise_bin("/home/me/src/mise/target/release/mise") Defensive patterns
Strategy: fallback
Validate before calling
sha256sum "$(command -v mise)" # compare against official SHA256SUMS before enabling auto-provisioning
Type guard
fn is_official_binary(hash: &str, manifest: &ReleaseManifest) -> bool { manifest.checksums.values().any(|c| c.eq_ignore_ascii_case(hash)) } Try / catch
match res { Err(e) if e.message.contains("custom mise build") => keep_custom_build(e), other => other? } Prevention
- Install mise only from official signed release artifacts if you rely on auto-provisioning
- Track local source builds separately and pin them with mise_bin
- Reinstall via the official installer after building from source for testing
When it happens
Trigger: ensure_official_local runs on a host whose existing mise binary (at `local`) does not match any checksum in the signed SHA256SUMS for the running CARGO_PKG_VERSION — e.g. a self-compiled mise, a patched distro package, or a stale binary whose version dir mismatches.
Common situations: Developers who built mise from source then enabled remote auto-provisioning; Linux distro-packaged mise versions; binaries modified in place; version reported by the binary differs from the release manifest being checked.
Understand the failure class
Background: Checksum mismatch errors: "checksum verification failed", "digest mismatch", "expected vs actual checksum" — what they mean and how to fix them — this error's family across 41 libraries.
Related errors
- signed mise release checksum manifest is empty
- : API metadata has no formula checksum
- brew-cask: : cask metadata has no sha256
- brew-cask: : cask metadata has no sha256
- Checksum mismatch for file
AI-assisted analysis of jdx/mise@533346cc37 (2026-09-17).
Data as JSON: /api/errors/f26066ea498e3e59.
Report an issue: GitHub.
Appendix: source
Thrown at src/system/remote.rs:1563
return Ok(());
}
if cfg!(debug_assertions) {
bail!(
"automatic cross-platform provisioning is unavailable from a debug mise build; set mise_bin, remote_mise, or bootstrap_command"
);
}
let local_os = normalize_os(std::env::consts::OS);
let local_arch = normalize_arch(std::env::consts::ARCH);
let candidates = official_release_assets(&local_os, &local_arch)?;
let actual = crate::hash::file_hash_sha256(local, None)?;
let manifest = self.manifest().await?;
let official = candidates.iter().any(|asset| {
manifest
.checksum(asset)
.is_ok_and(|expected| expected.eq_ignore_ascii_case(&actual))
});
if !official {
bail!(
"automatic cross-platform provisioning refuses to replace a custom mise build with an official binary because {} does not match the signed mise {} release checksums; set mise_bin, remote_mise, or bootstrap_command",
local.display(),
env!("CARGO_PKG_VERSION")
);
}
self.official_local_verified = true;
Ok(())
}
async fn manifest(&mut self) -> Result<&ReleaseManifest> {
if self.manifest.is_none() {
let manifest_url = release_url("SHASUMS256.txt");
let signature_url = release_url("SHASUMS256.txt.minisig");
let (contents, signature) = tokio::try_join!(
HTTP.get_text_cached(&manifest_url),
HTTP.get_text_cached(&signature_url)
)
.wrap_err_with(|| {View on GitHub (pinned to 533346cc37)