Open srid opened 1 month ago
We are detecting the wrong arch.
MacOS {
nix_darwin: false,
arch: Other(
Some(
"x86_64",
),
),
}
This suggests that os_info.architecture()
is returning wrong value.
The crate is using uname -m
: https://github.com/stanislav-tkach/os_info/blob/782e7564e62252f267a066adbb4bf4809d61fa77/os_info/src/architecture.rs#L6-L7
Which returns x86_64
on Rosetta terminal. However, the difference seems to lie in the architecture of the process that uses that crate. For native process, the result is correct; for Rosetta binary (of nix-health), the result is inaccurate.
I'm able to reproduce this on a macOS VM running in Parallels
This user installed Nix the official way on M1 mac, but as x86_64 binary: