Skip to content

Cargo fails to create any project on systems with an automounter #15327

Open
@samfux84

Description

@samfux84

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-workspacesArea: workspacesC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions