-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Comments
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. |
If nightly is the default toolchain then cargo +nightly check for example
fails because it’s already on nightly.
…On Mon, 5 Jul 2021 at 14:44, Eric Huss ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9652 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEJCGS6NXRC63CLEUMJ2LTWGZK3ANCNFSM472UMVKQ>
.
|
What is the error that you are getting? |
No subcommand +nightly
…On Sun, 11 Jul 2021 at 19:06, Eric Huss ***@***.***> wrote:
What is the error that you are getting?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9652 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEJCFHITHYRQGS463WGTDTXHMRRANCNFSM472UMVKQ>
.
|
Ah. +nighlty on nightly works fine on windows and linux. This seems to only
be osx specific hickup.
…On Sun, 11 Jul 2021 at 19:14, giles cope ***@***.***> wrote:
No subcommand +nightly
On Sun, 11 Jul 2021 at 19:06, Eric Huss ***@***.***> wrote:
> What is the error that you are getting?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#9652 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAGEJCFHITHYRQGS463WGTDTXHMRRANCNFSM472UMVKQ>
> .
>
|
That indicates that it isn't running the rustup wrapper. I would check that your |
Ah didn’t realise that it was part of rustup and not part of cargo. I guess
it’s rare enough that we don’t want to give a specialised error message in
cargo.
…On Sun, 11 Jul 2021 at 19:21, Eric Huss ***@***.***> wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9652 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEJCFHS4BVJ2GNWQSTBBDTXHOJJANCNFSM472UMVKQ>
.
|
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 |
Have also hit this a different way this week on a different OS. Nixos
doesn’t use rustup and thus any example with +stable or + nightly fails.
…On Thu, 5 Aug 2021 at 23:00, VincentWo ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9652 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGEJCGEHOCMS5ZPTCEOJITT3MCX3ANCNFSM472UMVKQ>
.
|
Closing in favor of #10900. |
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.)
The text was updated successfully, but these errors were encountered: