-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call the right cargo binary #2558
Conversation
rustup cargo $ cargo --help
Rust's package manager
USAGE:
cargo [+toolchain] [OPTIONS] [SUBCOMMAND]
...
$ ls -l `which cargo`
lrwxr-xr-x 12 messense staff 29 Jun 17 18:29 /Users/messense/.cargo/bin/cargo -> /opt/homebrew/bin/rustup-init standalone cargo $ /opt/homebrew/bin/cargo --help
Rust's package manager
USAGE:
cargo [OPTIONS] [SUBCOMMAND]
...
$ /opt/homebrew/bin/cargo +nightly list
error: no such subcommand: `+nightly` |
That's the weird thing - I have it installed correctly and it works fine in powershell. It just doesn't work when invoked from Rust using Command. |
Is there some |
I think it would be interesting to |
In this case that would be:
But
Ugh... |
Do any of the first four entries or the working directory contain a "standalone" EDIT: I guess |
So I guess the conclusion is that rustup's own tooling (?) is adding a PATH entry which means the future |
For some reason it calls the wrong cargo binary, resulting in this error: