{"record":{"id":"b6cd4265fa8bbac9","repo":"Hmbown/CodeWhale","slug":"no-release-source-publishes-an-asset-for-this-plat","errorCode":null,"errorMessage":"no release source publishes an asset for this platform","messagePattern":"no release source publishes an asset for this platform","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/cli/src/update.rs","lineNumber":985,"sourceCode":"    let proxy = proxy.cloned();\n    Arc::new(move |candidate: &ReleaseSourceCandidate| {\n        download_url_with_timeout(\n            &candidate.manifest_url,\n            proxy.as_ref(),\n            MANIFEST_PROBE_TIMEOUT,\n        )\n    })\n}\n\n/// Try the official GitHub manifest first. Only an unavailable or unusable\n/// manifest admits the next configured source; a faster mirror never races\n/// GitHub. Each network probe has its own bounded timeout and retry policy.\nfn select_release_source(\n    candidates: Vec<ReleaseSourceCandidate>,\n    fetch_manifest: Arc<ManifestFetcher>,\n) -> Result<DownloadPlan> {\n    if candidates.is_empty() {\n        bail!(\"no release source publishes an asset for this platform\");\n    }\n\n    let mut failures = Vec::new();\n    for candidate in candidates {\n        match probe_release_source(&candidate, &*fetch_manifest) {\n            Ok(checksums) => {\n                return Ok(DownloadPlan {\n                    source: candidate.source,\n                    binary_name: candidate.binary_name,\n                    binary_url: candidate.binary_url,\n                    checksums,\n                });\n            }\n            Err(error) => failures.push(format!(\"  - {}: {error:#}\", candidate.source.describe())),\n        }\n    }\n\n    bail!(","sourceCodeStart":967,"sourceCodeEnd":1003,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/cli/src/update.rs#L967-L1003","documentation":"select_release_source receives the list of release-source candidates applicable to this platform and, if that list is empty, bails immediately: no release source publishes an asset for this platform. This is a fail-closed guard before any network probing.","triggerScenarios":"resolve_download_plan builds ReleaseSourceCandidate entries (GitHub, CNB, mirrors) filtered by OS/arch, and none qualify — e.g. an unsupported target triple yields an empty candidates vector.","commonSituations":"Running on an uncommon OS/arch combination the project does not publish binaries for; a build/config disabled all release sources; platform string mismatch in candidate construction.","solutions":["Check docs/INSTALL.md platform matrix; build from source with cargo for unsupported platforms.","Verify your platform detection (os/arch) is what you expect; update to a version that supports your platform.","Configure an explicit release source/mirror if your environment hides the defaults."],"exampleFix":"// before: update on unsupported platform\n$ codewhale update  # no release source publishes an asset for this platform\n// after\n$ cargo install --path crates/cli   # build from source","handlingStrategy":"fallback","validationCode":"let supported = matches!((os, arch), (\"linux\"|\"macos\"|\"windows\", \"x86_64\"|\"aarch64\"));\nif !supported { /* build from source instead of calling update */ }","typeGuard":null,"tryCatchPattern":"match codewhale_update() {\n    Err(e) if e.to_string().contains(\"no release source publishes an asset\") => build_from_source(),\n    other => other?,\n}","preventionTips":["Check docs/INSTALL.md platform matrix before deploying to unusual architectures","Prefer package-manager/source installs on non-x86_64/aarch64 targets"],"tags":["self-update","platform-support","release-sources"],"backgroundTag":"unsupported-platform","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"}