Hmbown/CodeWhale · error

no release source published a usable

Error message

no release source published a usable {CHECKSUM_MANIFEST_ASSET} for this platform:
{}

What it means

select_release_source probes each candidate release source by fetching its checksum manifest; every candidate failed (network, HTTP, parse, missing asset). The errors from each source are collected and reported in one aggregate message: no release source published a usable checksum manifest for this platform. Fail-closed: the update is aborted rather than downloaded unverified.

Solutions

  1. Read the per-source failures in the message: fix connectivity/proxy for the listed hosts and retry.
  2. If GitHub is blocked, ensure the fallback mirror (CNB) is reachable or configure an accessible mirror.
  3. Retry later — a broken/rolling release may have a temporarily missing or malformed manifest.
  4. Use the offline install script or package manager instead of self-update.

Example fix

// before: corporate proxy blocks github.com and mirror
$ export HTTPS_PROXY=http://proxy:8080 && codewhale update
// after: allowlist release hosts or pin a reachable mirror in config, then retry
Defensive patterns

Strategy: retry

Validate before calling

fn release_hosts_reachable() -> bool {
    // probe manifest URLs with a short timeout before attempting update
    ["https://github.com", "https://your-mirror"].iter().all(|h| probe(h))
}

Try / catch

loop {
    match codewhale_update() {
        Err(e) if is_network_error(&e) => { sleep(backoff()); continue; }
        other => break other,
    }
}

Prevention

When it happens

Trigger: All candidates in the loop fail probe_release_source (fetch error, invalid UTF-8, parse error, or manifest missing the binary name) and the code reaches the final bail with the joined failure list.

Common situations: Offline or firewalled network; GitHub unreachable (common in some regions) and the CNB fallback also broken; release deleted or manifest renamed; corporate proxy blocking the release hosts.

Related errors


AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22). Data as JSON: /api/errors/400f3dd5099fb3ca. Report an issue: GitHub.

Appendix: source

Thrown at crates/cli/src/update.rs:1005

    let mut failures = Vec::new();
    for candidate in candidates {
        match probe_release_source(&candidate, &*fetch_manifest) {
            Ok(checksums) => {
                return Ok(DownloadPlan {
                    source: candidate.source,
                    binary_name: candidate.binary_name,
                    binary_url: candidate.binary_url,
                    checksums,
                });
            }
            Err(error) => failures.push(format!("  - {}: {error:#}", candidate.source.describe())),
        }
    }

    bail!(
        "no release source published a usable {CHECKSUM_MANIFEST_ASSET} for this platform:\n{}",
        failures.join("\n")
    )
}

fn probe_release_source(
    candidate: &ReleaseSourceCandidate,
    fetch_manifest: &ManifestFetcher,
) -> Result<HashMap<String, String>> {
    let bytes = fetch_manifest(candidate)
        .with_context(|| format!("failed to fetch {}", candidate.manifest_url))?;
    let text = std::str::from_utf8(&bytes)
        .with_context(|| format!("{} is not valid UTF-8", candidate.manifest_url))?;
    let checksums = parse_checksum_manifest(text)
        .with_context(|| format!("failed to parse {}", candidate.manifest_url))?;
    if !checksums.contains_key(&candidate.binary_name) {
        bail!(
            "{} does not list {}",
            candidate.manifest_url,
            candidate.binary_name

View on GitHub (pinned to 73e0f67d83)