{"record":{"id":"35f318022926275e","repo":"gitbutlerapp/gitbutler","slug":"no-download-url-for-platform-in-release-35f318","errorCode":null,"errorMessage":"No download URL for platform {} in release {}","messagePattern":"No download URL for platform (.+?) in release (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/but-installer/src/install_macos.rs","lineNumber":31,"sourceCode":"use flate2::read::GzDecoder;\nuse tar::Archive;\n\nuse crate::{\n    config::{Channel, InstallerConfig},\n    download::download_file,\n    install::{validate_installed_binary, verify_signature},\n    release::{PlatformInfo, Release, validate_download_url},\n    ui::{info, success, warn},\n};\n\npub fn download_and_install_app(\n    config: &InstallerConfig,\n    platform_info: &PlatformInfo,\n    release: &Release,\n    channel: Option<Channel>,\n) -> Result<()> {\n    let download_url = platform_info.url.as_deref().ok_or_else(|| {\n        anyhow::anyhow!(\n            \"No download URL for platform {} in release {}\",\n            config.platform,\n            release.version\n        )\n    })?;\n\n    validate_download_url(download_url)?;\n    info(&format!(\"Download URL: {download_url}\"));\n\n    let temp_dir = tempfile::Builder::new()\n        .prefix(\"gitbutler-install.\")\n        .tempdir()?;\n\n    let filename = download_url\n        .split('/')\n        .next_back()\n        .ok_or_else(|| anyhow::anyhow!(\"Failed to extract filename from download URL\"))?;\n    let tarball_path = temp_dir.path().join(filename);","sourceCodeStart":13,"sourceCodeEnd":49,"githubUrl":"https://github.com/gitbutlerapp/gitbutler/blob/58e5313667b857ef39a730e380af31816a7b1768/crates/but-installer/src/install_macos.rs#L13-L49","documentation":"download_and_install_app reads the download URL for the current platform from the release metadata (platform_info.url). When the GitHub release for this platform has no asset URL attached, it throws \"No download URL for platform {} in release {}\". The library requires every release entry for the selected platform to carry an asset URL before it can download anything.","triggerScenarios":"Calling run_installation (or run_installation_with_version) when the GitHub release's platforms entry for config.platform exists but its url field is null.","commonSituations":"A release published without assets for the platform (CI upload failed), the installer targeting a platform the release doesn't ship (e.g. aarch64 builds missing), or a partially published/edited release.","solutions":["Check the release on GitHub and verify an asset exists for your platform (config.platform)","Pin or request a different release version that has assets published (run_installation_with_version)","Update the installer to the latest version so the platform mapping matches current release asset names","Re-run the release publish workflow so platform assets are uploaded"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"// before installing, inspect the release metadata\nlet url = release.platforms.get(&config.platform)\n    .and_then(|p| p.url.as_deref());\nif url.is_none() {\n    eprintln!(\"Release {} has no asset for {}; pick another version\", release.version, config.platform);\n}","typeGuard":null,"tryCatchPattern":"// rust\nmatch run_installation(&config).await {\n    Err(e) if e.to_string().contains(\"No download URL for platform\") => {\n        eprintln!(\"Asset missing for this platform; try another release version\");\n    }\n    other => other?,\n}","preventionTips":["Verify the release page lists an asset for your OS/arch before installing","Pin installer and release versions known to have complete assets","Monitor the release CI upload job before announcing releases"],"tags":["installer","network","release-metadata","macos"],"backgroundTag":"missing-config-value","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"}