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

UX: Report non-installable toolchains #2562

Merged
merged 2 commits into from
Feb 20, 2021

Conversation

kinnison
Copy link
Contributor

If you pick a default toolchain which is not installable, or if you
try to rustup toolchain install something non-installable then we
should report it as such and exit non-zero so scripting can fail.

This fixes #2547

Starting this as draft because this needs tests but I'm feeling too tired to write some for now.

@kinnison
Copy link
Contributor Author

Hmm, I really need to write the tests for this so that I can finish it out.

@kinnison kinnison force-pushed the fix-failed-install-2547 branch 2 times, most recently from b4228c4 to 8faa028 Compare January 15, 2021 20:21
If you pick a default toolchain which is not installable, or if you
try to `rustup toolchain install` something non-installable then we
should report it as such and exit non-zero so scripting can fail.

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Copy link
Contributor Author

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am now satisfied with this patch, assuming green CI I'll un-draft the PR

@kinnison kinnison marked this pull request as ready for review January 15, 2021 22:03
@kinnison
Copy link
Contributor Author

@jyn514 Are you able to check if this would solve your particular problem? I can only try on Linux by default.

@jyn514
Copy link
Member

jyn514 commented Jan 18, 2021

Worked like a charm! error: toolchain '1.8.0-freebsd' is not installable

Thanks for the fix!

@rust-lang rust-lang deleted a comment Jan 19, 2021
src/install.rs Show resolved Hide resolved
@kinnison kinnison merged commit 137685b into rust-lang:master Feb 20, 2021
@kinnison kinnison deleted the fix-failed-install-2547 branch February 20, 2021 14:54
@kinnison kinnison added this to the 1.24.0 milestone Feb 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trying to install 1.8.0 on freebsd succeeds without actually installing the toolchain
2 participants