Don't try and run on armv5/6/7 (#20618)

Updates: #20523

Release Notes:

- SSH Remoting: correctly show an error when SSH'ing into a 32-bit arm
system
This commit is contained in:
Conrad Irwin 2024-11-13 16:18:53 -07:00 committed by GitHub
parent 84d17fb191
commit 7e349e52b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1553,9 +1553,13 @@ impl SshRemoteConnection {
"Prebuilt remote servers are not yet available for {os:?}. See https://zed.dev/docs/remote-development"
))?,
};
let arch = if arch.starts_with("arm") || arch.starts_with("aarch64") {
// exclude armv5,6,7 as they are 32-bit.
let arch = if arch.starts_with("armv8")
|| arch.starts_with("armv9")
|| arch.starts_with("aarch64")
{
"aarch64"
} else if arch.starts_with("x86") || arch.starts_with("i686") {
} else if arch.starts_with("x86") {
"x86_64"
} else {
Err(anyhow!(