Open
Description
Problem
Hi,
On our universities HPC cluster (with 4000+ users), the home directories are mounted via an automounter script in the path /cluster/home/$USER, which basically makes rust unusable:
sfux@eu-login-40:~$ module load stack/2024-06 rust/1.85.0
sfux@eu-login-40:~$ cargo new hello
Creating binary (application) `hello` package
error: Failed to create package `hello` at `/cluster/home/sfux/hello`
Caused by:
failed to read `/cluster/home/Cargo.toml`
Caused by:
Permission denied (os error 13)
sfux@eu-login-40:~$
The automounter tries to mount the home directory of the non-existing user "Cargo.toml" and then returns a "permission denied" error, which cargo cannot handle.
Is there a way to prevent cargo from searching Cargo.toml everywhere in the path of the working directory? Or is there a way to have cargo handling the "Permission denied" without failing?
Any help is appreciated.
Best regards
Sam