gitbutlerapp/gitbutler · error
No download URL for platform
Error message
No download URL for platform {} in release {} What it means
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.
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
Defensive patterns
Strategy: validation
Validate before calling
// before installing, inspect the release metadata
let url = release.platforms.get(&config.platform)
.and_then(|p| p.url.as_deref());
if url.is_none() {
eprintln!("Release {} has no asset for {}; pick another version", release.version, config.platform);
} Try / catch
// rust
match run_installation(&config).await {
Err(e) if e.to_string().contains("No download URL for platform") => {
eprintln!("Asset missing for this platform; try another release version");
}
other => other?,
} Prevention
- 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
When it happens
Trigger: 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.
Common situations: 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.
Understand the failure class
Background: "missing required config value" errors: why libraries refuse to start when a configuration key is empty, unset, or blank — this error's family across 48 libraries.
Related errors
- A 'but' binary already exists at
- Could not remove quarantine attribute
- Failed to construct but cli URL
- Failed to create symlink
- Failed to extract filename from download URL
AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18).
Data as JSON: /api/errors/35f318022926275e.
Report an issue: GitHub.
Appendix: source
Thrown at crates/but-installer/src/install_macos.rs:31
use flate2::read::GzDecoder;
use tar::Archive;
use crate::{
config::{Channel, InstallerConfig},
download::download_file,
install::{validate_installed_binary, verify_signature},
release::{PlatformInfo, Release, validate_download_url},
ui::{info, success, warn},
};
pub fn download_and_install_app(
config: &InstallerConfig,
platform_info: &PlatformInfo,
release: &Release,
channel: Option<Channel>,
) -> Result<()> {
let download_url = platform_info.url.as_deref().ok_or_else(|| {
anyhow::anyhow!(
"No download URL for platform {} in release {}",
config.platform,
release.version
)
})?;
validate_download_url(download_url)?;
info(&format!("Download URL: {download_url}"));
let temp_dir = tempfile::Builder::new()
.prefix("gitbutler-install.")
.tempdir()?;
let filename = download_url
.split('/')
.next_back()
.ok_or_else(|| anyhow::anyhow!("Failed to extract filename from download URL"))?;
let tarball_path = temp_dir.path().join(filename);View on GitHub (pinned to 58e5313667)