{"record":{"id":"962dc48d408e1519","repo":"jdx/mise","slug":"signed-mise-release-checksum-manifest-is-empty","errorCode":null,"errorMessage":"signed mise release checksum manifest is empty","messagePattern":"signed mise release checksum manifest is empty","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/remote.rs","lineNumber":1478,"sourceCode":"    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {\n        match self {\n            Self::Glibc => f.write_str(\"glibc\"),\n            Self::Musl => f.write_str(\"musl\"),\n        }\n    }\n}\n\nimpl ReleaseManifest {\n    fn verified(contents: &str, signature: &str) -> Result<Self> {\n        crate::minisign::verify(\n            &crate::minisign::MISE_PUB_KEY,\n            contents.as_bytes(),\n            signature,\n        )\n        .wrap_err(\"mise release checksum signature is invalid\")?;\n        let checksums = crate::hash::parse_shasums(contents);\n        if checksums.is_empty() {\n            bail!(\"signed mise release checksum manifest is empty\");\n        }\n        if checksums.values().any(|checksum| {\n            checksum.len() != 64 || !checksum.bytes().all(|byte| byte.is_ascii_hexdigit())\n        }) {\n            bail!(\"signed mise release checksum manifest contains an invalid SHA-256 checksum\");\n        }\n        Ok(Self { checksums })\n    }\n\n    fn checksum(&self, asset: &str) -> Result<&str> {\n        self.checksums\n            .get(asset)\n            .or_else(|| self.checksums.get(&format!(\"./{asset}\")))\n            .map(String::as_str)\n            .ok_or_else(|| eyre!(\"signed mise release manifest does not contain {asset}\"))\n    }\n}\n","sourceCodeStart":1460,"sourceCodeEnd":1496,"githubUrl":"https://github.com/jdx/mise/blob/533346cc374382b41ec5ff70536252b2e96e725c/src/system/remote.rs#L1460-L1496","documentation":"When verifying the local mise binary against official signed releases, mise downloads the release SHA-256 checksums file and its signature, verifies the signature, and parses the manifest. If the verified manifest parses to zero checksum entries, it cannot serve as a trust anchor, so this error is thrown rather than proceeding with an empty verification basis.","triggerScenarios":"Calling the official-release verification path (ensure_official_local / ReleaseManifest::verified) when the downloaded SHA256SUMS file is empty or contains no parseable \"<checksum>  <filename>\" lines despite having a valid signature — e.g. an upstream release published with an empty checksums asset or a mirror serving a zero-byte manifest.","commonSituations":"Broken or partially published mise GitHub release; corrupted CDN/proxy cache serving an empty manifest; redirect to an HTML error page that happens to pass signature lookup; network middleware stripping the manifest body.","solutions":["Re-run the operation to re-download the checksum manifest","Check the mise release assets on GitHub for the pinned version to confirm SHA256SUMS is published and non-empty","Clear or bypass any HTTP proxy/cache that may serve a truncated manifest","Set mise_bin or remote_mise explicitly to skip official-release verification"],"exampleFix":"// before\nlet manifest = ReleaseManifest::verified(&contents, &signature)?;\n// operational fix: pin an explicit binary instead of trusting a broken release manifest\nconfig.mise_bin(\"/usr/local/bin/mise\");","handlingStrategy":"fallback","validationCode":"curl -fsSL \"$RELEASE_URL/SHA256SUMS\" | grep -c .   # ensure manifest is non-empty before use","typeGuard":"fn manifest_non_empty(contents: &str) -> bool { !contents.trim().is_empty() }","tryCatchPattern":"match res { Err(e) if e.message.contains(\"manifest is empty\") => { purge_cache(); retry_once(); } other => other? }","preventionTips":["Pin and verify release manifest URLs before deployment","Avoid caching layers that can serve empty bodies silently","Fall back to mise_bin pinning when release assets look broken upstream"],"tags":["checksum","release-verification","empty-manifest"],"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"}