Skip to content
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

cargo +nightly fails if running without rustup wrapper #9652

Closed
gilescope opened this issue Jul 5, 2021 · 10 comments
Closed

cargo +nightly fails if running without rustup wrapper #9652

gilescope opened this issue Jul 5, 2021 · 10 comments
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@gilescope
Copy link
Contributor

It would be nice if +nightly was a no-op on nightly. (Happy to have a warning saying you're already on nightly, but would like to be able to run the same command line as on stable and have it work.)

@gilescope gilescope added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Jul 5, 2021
@ehuss
Copy link
Contributor

ehuss commented Jul 5, 2021

Can you say more about what this means? What is the error you are experiencing? What commands did you run? What versions are you using? It shouldn't fail if nightly is already installed.

FWIW, the toolchain selection is done as part of rustup, so this is unlikely to be related to cargo. Rustup has its own tracker at https://github.com/rust-lang/rustup.

@gilescope
Copy link
Contributor Author

gilescope commented Jul 11, 2021 via email

@ehuss
Copy link
Contributor

ehuss commented Jul 11, 2021

What is the error that you are getting?

@gilescope
Copy link
Contributor Author

gilescope commented Jul 11, 2021 via email

@gilescope
Copy link
Contributor Author

gilescope commented Jul 11, 2021 via email

@ehuss
Copy link
Contributor

ehuss commented Jul 11, 2021

That indicates that it isn't running the rustup wrapper. I would check that your PATH is configured properly (adding ~/.cargo/bin towards the front). You can also check by running which cargo to check which it is running and make sure it says ~/.cargo/bin/cargo.

@gilescope
Copy link
Contributor Author

gilescope commented Jul 26, 2021 via email

@ehuss ehuss changed the title cargo +nightly fails if you're already on nightly cargo +nightly fails if running without rustup wrapper Aug 3, 2021
@ehuss ehuss added the A-diagnostics Area: Error and warning messages generated by Cargo itself. label Aug 3, 2021
@VincentWo
Copy link

I think it would still be nice to give an special error for this case. Rustup is the official way of installing Rust and a lot of tutorials use it, this could be confusing to newcomers (or in this case confused you)

Especially since this probably isn't the easiest term to google for

@gilescope
Copy link
Contributor Author

gilescope commented Aug 6, 2021 via email

@ehuss
Copy link
Contributor

ehuss commented Jul 25, 2022

Closing in favor of #10900.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Error and warning messages generated by Cargo itself. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

3 participants