{"record":{"id":"52d5dc9a660ce97a","repo":"zeroclaw-labs/zeroclaw","slug":"invalid-sha256sums-entry-for-asset-name","errorCode":null,"errorMessage":"invalid SHA256SUMS entry for '{asset_name}'","messagePattern":"invalid SHA256SUMS entry for '(.+?)'","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/commands/update.rs","lineNumber":569,"sourceCode":"        .path_segments()?\n        .next_back()\n        .filter(|name| !name.is_empty())\n        .map(str::to_string)\n}\n\nfn expected_sha256_for_asset<'a>(sums_text: &'a str, asset_name: &str) -> Result<&'a str> {\n    for line in sums_text.lines() {\n        let mut parts = line.split_whitespace();\n        let Some(digest) = parts.next() else {\n            continue;\n        };\n        let Some(name) = parts.next() else {\n            continue;\n        };\n        let name = name.trim_start_matches('*');\n        if name == asset_name {\n            if parts.next().is_some() {\n                bail!(\"invalid SHA256SUMS entry for '{asset_name}'\");\n            }\n            if !is_sha256_hex(digest) {\n                bail!(\"invalid SHA256SUMS entry for '{asset_name}'\");\n            }\n            return Ok(digest);\n        }\n    }\n\n    bail!(\"asset '{asset_name}' not found in SHA256SUMS\")\n}\n\nfn is_sha256_hex(value: &str) -> bool {\n    value.len() == 64 && value.bytes().all(|b| b.is_ascii_hexdigit())\n}\n\nfn main_binary_name() -> &'static str {\n    if cfg!(windows) {\n        \"zeroclaw.exe\"","sourceCodeStart":551,"sourceCodeEnd":587,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/commands/update.rs#L551-L587","documentation":"Error \"invalid SHA256SUMS entry for '{asset_name}'\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/commands/update.rs:569 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-fetch SHA256SUMS; a malformed entry may be transient or from a partial download.","Verify the asset name matches an entry in SHA256SUMS and retry the update."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}