-
Notifications
You must be signed in to change notification settings - Fork 955
Document "invalid channel name '[toolchain]'" error #2697
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
Document "invalid channel name '[toolchain]'" error #2697
Conversation
It took me a while to figure this out. I got this error when building a project with rust-toolchain containing TOML and I had a fresh rustup, rust nightly etc. but still there were errors. Running rustup default stable rustup default nightly made it work for me. I'm not entirely sure if the explanation is totally accurate, of course.
That error would likely only occur if you had an outdated (1.22 or earlier) |
doc/src/overrides.md
Outdated
it means you're running `rustup` pre-1.23.0 (or just a default toolchain set by | ||
`rustup` pre-1.23.0) and trying to interact with a project that uses the new TOML | ||
encoding in the `rust-toolchain` file. You need to upgrade `rustup` to 1.23.0+ | ||
and set the default toolchain again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need to 'set the default toolchain again'. You simply need to upgrade rustup
(e.g. via rustup self update
or rustup update
)
I would totally agree with your assesment (that upgrading |
Only rustup needs to be updated.
I changed the doc because I thought I failed to reproduce this. I did it too hastily, it seems, as I think I was wrong (as in: the initial version had some truth to it). Steps to reproduce (Mac OS 10.14.6 and Homebrew, but I don't think it's relevant):
Verify the expected state:
The failure above is expected.
Funnily enough this time I can't get it to work by (re)setting the default toolchain. Am I doing something wrong here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the slight tweak needed to remove some repeated words, this looks good.
The example you give is fascinating, I wonder if the Can you please try |
Sure, the output:
PS. The steps above start with an implicit "0. nuke ~/.cargo and ~/.rustup to get clean slate" step. |
Well that's fascinating - it implies that the |
You're right, of course. Now that I know that On the
front – I'm wondering if this isn't maybe an iassue with how Homebrew installs and updates |
2a25a74
to
f58a414
Compare
When |
I understand, your description sounds exactly right. There isn't a separate |
Nominally |
It took me a while to figure this out. I got this error when building a
project with rust-toolchain containing TOML and I had a fresh rustup,
rust nightly etc. but still there were errors. Running
made it work for me. I'm not entirely sure if the explanation is totally
accurate, of course.