https://github.com/rust-lang/cargo/issues/2937 --- a/src/cargo/util/flock.rs +++ b/src/cargo/util/flock.rs @@ -282,7 +282,7 @@ human(format!("failed to lock file: {}", path.display())) }); - #[cfg(target_os = "linux")] + #[cfg(all(target_os = "linux", not(target_env = "musl")))] fn is_on_nfs_mount(path: &Path) -> bool { use std::ffi::CString; use std::mem; @@ -302,7 +302,7 @@ } } - #[cfg(not(target_os = "linux"))] + #[cfg(any(not(target_os = "linux"), target_env = "musl"))] fn is_on_nfs_mount(_path: &Path) -> bool { false }