gitbutlerapp/gitbutler · error

Platform not found in release

Error message

Platform {} not found in release

What it means

run_installation_impl looks up the selected platform (config.platform) in the release's platforms map from the GitHub release metadata. If the key is absent, it throws "Platform {} not found in release" before any download begins. This is the guard ensuring the release actually ships artifacts for your platform.

Solutions

  1. Check the release's platforms list (GitHub release assets) for your platform key
  2. Update the but installer to the latest version so platform detection matches current releases
  3. Install a different release version that includes your platform (run_installation_with_version)
  4. If on an unsupported architecture, use a supported one or build from source
Defensive patterns

Strategy: validation

Validate before calling

// check platform availability before running installation
match release.platforms.get(&config.platform) {
    Some(p) if p.url.is_some() => { /* safe to install */ }
    _ => eprintln!("platform {} unavailable in this release", config.platform),
}

Try / catch

// rust
match run_installation(&config).await {
    Err(e) if e.to_string().contains("not found in release") => {
        eprintln!("your platform is not shipped in this release; pick another version");
    }
    other => other?,
}

Prevention

When it happens

Trigger: Calling run_installation or run_installation_with_version with a config.platform (e.g. "x86_64-macos", "aarch64-linux") that is not a key in release.platforms.

Common situations: Running an older installer that computes a platform key a newer release no longer publishes, running on a niche platform (e.g. x86_64 Linux after it was dropped), or a release published without all platform assets.

Understand the failure class

Background: Record Not Found Errors: "not found", RecordNotFound, and "was not found" — what they mean and how to fix them — this error's family across 28 libraries.

Related errors


AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18). Data as JSON: /api/errors/5240a445344d4140. Report an issue: GitHub.

Appendix: source

Thrown at crates/but-installer/src/lib.rs:150

            Some(Channel::Nightly)
        }
        VersionRequest::Specific(version) => {
            info(&format!("Installing version: {version}"));
            None
        }
        VersionRequest::Release => {
            info(&format!(
                "Installing latest release version: {}",
                release.version
            ));
            Some(Channel::Release)
        }
    };

    let platform_info = release
        .platforms
        .get(&config.platform)
        .ok_or_else(|| anyhow::anyhow!("Platform {} not found in release", config.platform))?;

    download_and_install_app(&config, platform_info, &release, channel)?;

    if interactive {
        info("Checking shell configuration");
        configure_shell(&config.home_dir)?;
    }

    ui::println_empty();
    success(&format!(
        "✓ GitButler CLI installation completed! ({}{})",
        channel
            .map(|c| format!("{} ", c.display_name()))
            .unwrap_or_default(),
        release.version
    ));
    ui::println_empty();

View on GitHub (pinned to 58e5313667)