Skip to content

rustup run <version> cargo does not work when rustup is not in path #497

@hansihe

Description

@hansihe

Trying to use rustup without having the bin folder added to my path.

Running rustc directly seems to work fine, but things break when trying to run cargo.

~/g/R/test> /home/hansihe/.cargo/bin/rustup run nightly-2016-05-07 rustc --version
rustc 1.10.0-nightly (62e2b2fb7 2016-05-06)
~/g/R/test> /home/hansihe/.cargo/bin/rustup run nightly-2016-05-07 cargo --version
error: Could not execute process `rustc -vV` (never executed)

Caused by:
  No such file or directory (os error 2)

I saw some other issues getting similar errors, but I am unsure if the issues are related.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions