Hmbown/CodeWhale · error

no release source publishes an asset for this platform

Error message

no release source publishes an asset for this platform

What it means

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.

Solutions

  1. Check docs/INSTALL.md platform matrix; build from source with cargo for unsupported platforms.
  2. Verify your platform detection (os/arch) is what you expect; update to a version that supports your platform.
  3. Configure an explicit release source/mirror if your environment hides the defaults.

Example fix

// before: update on unsupported platform
$ codewhale update  # no release source publishes an asset for this platform
// after
$ cargo install --path crates/cli   # build from source
Defensive patterns

Strategy: fallback

Validate before calling

let supported = matches!((os, arch), ("linux"|"macos"|"windows", "x86_64"|"aarch64"));
if !supported { /* build from source instead of calling update */ }

Try / catch

match codewhale_update() {
    Err(e) if e.to_string().contains("no release source publishes an asset") => build_from_source(),
    other => other?,
}

Prevention

When it happens

Trigger: 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.

Common situations: 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.

Understand the failure class

Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.

Related errors


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

Appendix: source

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

    let proxy = proxy.cloned();
    Arc::new(move |candidate: &ReleaseSourceCandidate| {
        download_url_with_timeout(
            &candidate.manifest_url,
            proxy.as_ref(),
            MANIFEST_PROBE_TIMEOUT,
        )
    })
}

/// Try the official GitHub manifest first. Only an unavailable or unusable
/// manifest admits the next configured source; a faster mirror never races
/// GitHub. Each network probe has its own bounded timeout and retry policy.
fn select_release_source(
    candidates: Vec<ReleaseSourceCandidate>,
    fetch_manifest: Arc<ManifestFetcher>,
) -> Result<DownloadPlan> {
    if candidates.is_empty() {
        bail!("no release source publishes an asset for this platform");
    }

    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!(

View on GitHub (pinned to 73e0f67d83)