Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
auto_update: Tentatively prevent auto-update loop on Nightly again (#43670)
Piotr Osiewiczc2281779af56
diff --git a/crates/auto_update/src/auto_update.rs b/crates/auto_update/src/auto_update.rsindex 06e87c53dba..0c122717d7a 100644--- a/crates/auto_update/src/auto_update.rs+++ b/crates/auto_update/src/auto_update.rs@@ -639,10 +639,11 @@ impl AutoUpdater {if let AutoUpdateStatus::Updated { version, .. } = status {match version {VersionCheckType::Sha(cached_version) => {- let should_download = parsed_fetched_version- .as_ref()- .ok()- .is_none_or(|version| version.build.as_str() != cached_version.full());+ let should_download =+ parsed_fetched_version.as_ref().ok().is_none_or(|version| {+ version.build.as_str().rsplit('.').next()+ != Some(&cached_version.full())+ });let newer_version = should_download.then(|| VersionCheckType::Sha(AppCommitSha::new(fetched_version)));return Ok(newer_version);@@ -662,10 +663,9 @@ impl AutoUpdater {.ok().flatten().map(|sha| {- parsed_fetched_version- .as_ref()- .ok()- .is_none_or(|version| version.build.as_str() != sha)+ parsed_fetched_version.as_ref().ok().is_none_or(|version| {+ version.build.as_str().rsplit('.').next() != Some(&sha)+ })}).unwrap_or(true);let newer_version = should_download