{"record":{"id":"6d5540ffea0fb1ab","repo":"Hmbown/CodeWhale","slug":"from-does-not-list-refusing-to-download","errorCode":null,"errorMessage":"{} from {} does not list {}; refusing to download an unverified update","messagePattern":"(.+?) from (.+?) does not list (.+?); refusing to download an unverified update","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/update.rs","lineNumber":950,"sourceCode":"    .with_context(|| {\n        format!(\n            \"failed to download {} from {}\\n{}\",\n            checksum_asset.name,\n            fetched.source.describe(),\n            update_network_fallback_hint()\n        )\n    })?;\n    let checksum_text = std::str::from_utf8(&checksum_bytes)\n        .with_context(|| format!(\"{} is not valid UTF-8\", checksum_asset.name))?;\n    let checksums = parse_checksum_manifest(checksum_text).with_context(|| {\n        format!(\n            \"failed to parse {} from {}\",\n            checksum_asset.name,\n            fetched.source.describe()\n        )\n    })?;\n    if !checksums.contains_key(&asset.name) {\n        bail!(\n            \"{} from {} does not list {}; refusing to download an unverified update\",\n            checksum_asset.name,\n            fetched.source.describe(),\n            asset.name\n        );\n    }\n\n    Ok(DownloadPlan {\n        source: fetched.source.clone(),\n        binary_name: asset.name.clone(),\n        binary_url: asset.browser_download_url.clone(),\n        checksums,\n    })\n}\n\nfn manifest_probe_fetcher(proxy: Option<&Proxy>) -> Arc<ManifestFetcher> {\n    let proxy = proxy.cloned();\n    Arc::new(move |candidate: &ReleaseSourceCandidate| {","sourceCodeStart":932,"sourceCodeEnd":968,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/cli/src/update.rs#L932-L968","documentation":"single_source_download_plan parses the SHA256SUMS manifest fetched from a release source and requires that it lists the exact asset name for the current platform before the binary is downloaded. If the checksum manifest does not contain the platform binary's asset name, the updater refuses to download an unverifiable update — verification fails closed.","triggerScenarios":"resolve_download_plan -> single_source_download_plan with a checksum asset that parses fine but whose `checksums` map lacks `asset.name` for the current platform; tests cover missing manifests, malformed manifests, and mirrors pinned to their own manifest.","commonSituations":"A release was published with binaries but a stale/partial checksum manifest; a mirror serves an older manifest that predates the platform asset; targeting an uncommon platform whose asset was omitted.","solutions":["Wait for/publish a release whose SHA256SUMS includes the platform asset, then retry update.","If using a pinned mirror, ensure the mirror serves the manifest and binary from the same release.","Check the release assets on the release page and use the documented install script for platforms missing assets.","Report the missing manifest entry to the project if the binary asset exists."],"exampleFix":"// before: manifest lists only x86_64 but you are on aarch64\n// after: pin to a release/source whose manifest covers your platform, or install manually\n$ curl -fsSL https://example/install.sh | sh","handlingStrategy":"validation","validationCode":"fn manifest_covers(checksums: &HashMap<String,String>, asset: &str) -> bool {\n    checksums.contains_key(asset)\n} // verify before downloading; if false, skip the source","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Only pin mirrors that serve the manifest and binary from the same release","Verify release completeness (manifest includes all platform assets) before rolling it out"],"tags":["self-update","checksum-manifest","release-assets","verification"],"backgroundTag":"checksum-mismatch","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}