{"record":{"id":"5240a445344d4140","repo":"gitbutlerapp/gitbutler","slug":"platform-not-found-in-release","errorCode":null,"errorMessage":"Platform {} not found in release","messagePattern":"Platform (.+?) not found in release","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but-installer/src/lib.rs","lineNumber":150,"sourceCode":"            Some(Channel::Nightly)\n        }\n        VersionRequest::Specific(version) => {\n            info(&format!(\"Installing version: {version}\"));\n            None\n        }\n        VersionRequest::Release => {\n            info(&format!(\n                \"Installing latest release version: {}\",\n                release.version\n            ));\n            Some(Channel::Release)\n        }\n    };\n\n    let platform_info = release\n        .platforms\n        .get(&config.platform)\n        .ok_or_else(|| anyhow::anyhow!(\"Platform {} not found in release\", config.platform))?;\n\n    download_and_install_app(&config, platform_info, &release, channel)?;\n\n    if interactive {\n        info(\"Checking shell configuration\");\n        configure_shell(&config.home_dir)?;\n    }\n\n    ui::println_empty();\n    success(&format!(\n        \"✓ GitButler CLI installation completed! ({}{})\",\n        channel\n            .map(|c| format!(\"{} \", c.display_name()))\n            .unwrap_or_default(),\n        release.version\n    ));\n    ui::println_empty();\n","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but-installer/src/lib.rs#L132-L168","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Check the release's platforms list (GitHub release assets) for your platform key","Update the but installer to the latest version so platform detection matches current releases","Install a different release version that includes your platform (run_installation_with_version)","If on an unsupported architecture, use a supported one or build from source"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// check platform availability before running installation\nmatch release.platforms.get(&config.platform) {\n    Some(p) if p.url.is_some() => { /* safe to install */ }\n    _ => eprintln!(\"platform {} unavailable in this release\", config.platform),\n}","typeGuard":null,"tryCatchPattern":"// rust\nmatch run_installation(&config).await {\n    Err(e) if e.to_string().contains(\"not found in release\") => {\n        eprintln!(\"your platform is not shipped in this release; pick another version\");\n    }\n    other => other?,\n}","preventionTips":["Keep the installer updated so platform keys match current releases","Check release assets for your OS/arch before upgrading","Handle dropped platforms (e.g. x86_64 linux) by pinning older versions"],"tags":["installer","release-metadata","platform-support"],"backgroundTag":"record-not-found","analyzedSha":"58e5313667b857ef39a730e380af31816a7b1768","analyzedAt":"2026-09-18T06:50:32.052Z","contentChangedAt":"2026-09-18T06:50:32.052Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}