{"record":{"id":"1729464a83f45a3b","repo":"zed-industries/zed","slug":"could-not-auto-update-because-the-required-rsync-u","errorCode":null,"errorMessage":"Could not auto-update because the required rsync utility was not found.","messagePattern":"Could not auto-update because the required rsync utility was not found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/auto_update/src/auto_update.rs","lineNumber":915,"sourceCode":"                    current_version,\n                    fetched_version,\n                ))\n            }\n        }\n    }\n\n    fn check_dependencies() -> Result<()> {\n        #[cfg(target_os = \"linux\")]\n        if which::which(\"rsync\").is_err() {\n            let install_hint = linux_rsync_install_hint();\n            return Err(MissingDependencyError(format!(\n                \"rsync is required for auto-updates but is not installed. {install_hint}\"\n            ))\n            .into());\n        }\n\n        #[cfg(target_os = \"macos\")]\n        anyhow::ensure!(\n            which::which(\"rsync\").is_ok(),\n            \"Could not auto-update because the required rsync utility was not found.\"\n        );\n\n        Ok(())\n    }\n\n    async fn target_path(installer_dir: &InstallerDir) -> Result<PathBuf> {\n        let filename = match OS {\n            \"macos\" => anyhow::Ok(\"Zed.dmg\"),\n            \"linux\" => Ok(\"zed.tar.gz\"),\n            \"windows\" => Ok(\"Zed.exe\"),\n            unsupported_os => anyhow::bail!(\"not supported: {unsupported_os}\"),\n        }?;\n\n        Ok(installer_dir.path().join(filename))\n    }\n","sourceCodeStart":897,"sourceCodeEnd":933,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/auto_update/src/auto_update.rs#L897-L933","documentation":"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.","triggerScenarios":"Thrown at crates/auto_update/src/auto_update.rs:904 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}