{"record":{"id":"f26066ea498e3e59","repo":"jdx/mise","slug":"automatic-cross-platform-provisioning-refuses-to-r","errorCode":null,"errorMessage":"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","messagePattern":"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","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1563,"sourceCode":"            return Ok(());\n        }\n        if cfg!(debug_assertions) {\n            bail!(\n                \"automatic cross-platform provisioning is unavailable from a debug mise build; set mise_bin, remote_mise, or bootstrap_command\"\n            );\n        }\n        let local_os = normalize_os(std::env::consts::OS);\n        let local_arch = normalize_arch(std::env::consts::ARCH);\n        let candidates = official_release_assets(&local_os, &local_arch)?;\n        let actual = crate::hash::file_hash_sha256(local, None)?;\n        let manifest = self.manifest().await?;\n        let official = candidates.iter().any(|asset| {\n            manifest\n                .checksum(asset)\n                .is_ok_and(|expected| expected.eq_ignore_ascii_case(&actual))\n        });\n        if !official {\n            bail!(\n                \"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\",\n                local.display(),\n                env!(\"CARGO_PKG_VERSION\")\n            );\n        }\n        self.official_local_verified = true;\n        Ok(())\n    }\n\n    async fn manifest(&mut self) -> Result<&ReleaseManifest> {\n        if self.manifest.is_none() {\n            let manifest_url = release_url(\"SHASUMS256.txt\");\n            let signature_url = release_url(\"SHASUMS256.txt.minisig\");\n            let (contents, signature) = tokio::try_join!(\n                HTTP.get_text_cached(&manifest_url),\n                HTTP.get_text_cached(&signature_url)\n            )\n            .wrap_err_with(|| {","sourceCodeStart":1545,"sourceCodeEnd":1581,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1545-L1581","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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"],"exampleFix":"// before (custom build gets refused)\nremote_config.bootstrap_command(...)\n// after (declare the custom build)\nremote_config.mise_bin(\"/home/me/src/mise/target/release/mise\")","handlingStrategy":"fallback","validationCode":"sha256sum \"$(command -v mise)\"   # compare against official SHA256SUMS before enabling auto-provisioning","typeGuard":"fn is_official_binary(hash: &str, manifest: &ReleaseManifest) -> bool { manifest.checksums.values().any(|c| c.eq_ignore_ascii_case(hash)) }","tryCatchPattern":"match res { Err(e) if e.message.contains(\"custom mise build\") => keep_custom_build(e), other => other? }","preventionTips":["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"],"tags":["checksum","custom-build","release-verification"],"backgroundTag":"checksum-mismatch","analyzedSha":"533346cc374382b41ec5ff70536252b2e96e725c","analyzedAt":"2026-09-17T13:35:38.149Z","contentChangedAt":"2026-09-17T13:35:38.149Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}