zed-industries/zed · error
Could not auto-update because the required rsync utility…
Error message
Could not auto-update because the required rsync utility was not found.
What it means
check_dependencies verifies rsync exists before updating (it's used to copy the update); on the current platform `which rsync` failed (or the ensure! failed on macOS), so auto-update aborts with a platform-specific install hint.
Solutions
- Install rsync with the system package manager (e.g. apt install rsync or brew install rsync) as hinted in the error
- Retry the update check once rsync is on PATH
- Disable auto-updates and update manually if rsync cannot be installed in the environment
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/auto_update/src/auto_update.rs:904 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/1729464a83f45a3b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/auto_update/src/auto_update.rs:915
current_version,
fetched_version,
))
}
}
}
fn check_dependencies() -> Result<()> {
#[cfg(target_os = "linux")]
if which::which("rsync").is_err() {
let install_hint = linux_rsync_install_hint();
return Err(MissingDependencyError(format!(
"rsync is required for auto-updates but is not installed. {install_hint}"
))
.into());
}
#[cfg(target_os = "macos")]
anyhow::ensure!(
which::which("rsync").is_ok(),
"Could not auto-update because the required rsync utility was not found."
);
Ok(())
}
async fn target_path(installer_dir: &InstallerDir) -> Result<PathBuf> {
let filename = match OS {
"macos" => anyhow::Ok("Zed.dmg"),
"linux" => Ok("zed.tar.gz"),
"windows" => Ok("Zed.exe"),
unsupported_os => anyhow::bail!("not supported: {unsupported_os}"),
}?;
Ok(installer_dir.path().join(filename))
}
View on GitHub (pinned to 916fc2b8cb)