Skip to content

UX: Report non-installable toolchains#2562

Merged
kinnison merged 2 commits intorust-lang:masterfrom
kinnison:fix-failed-install-2547
Feb 20, 2021
Merged

UX: Report non-installable toolchains#2562
kinnison merged 2 commits intorust-lang:masterfrom
kinnison:fix-failed-install-2547

Conversation

@kinnison
Copy link
Copy Markdown
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
Copy Markdown
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>
@kinnison kinnison force-pushed the fix-failed-install-2547 branch from 8faa028 to 1c1c03a Compare January 15, 2021 21:24
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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