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

Allow any toolchain to be specified as the default during rustup installation. #586

Merged
merged 1 commit into from Jul 19, 2016

Conversation

Projects
None yet
3 participants
@jimmycuadra
Copy link
Contributor

jimmycuadra commented Jul 15, 2016

Instead of restricting the --default-toolchain argument to rustup-init to one of the release channel names, allow any toolchain specification, but warn the user if they do so, since this makes it easier to accidentally install rustup with an invalid toolchain name.

Fixes #559.

});
}

#[test]

This comment has been minimized.

@brson

brson Jul 15, 2016

Contributor

Thanks for writing tests!

default_toolchain
}
None => "stable",
};

This comment has been minimized.

@brson

brson Jul 15, 2016

Contributor

If you don't mind, let's take this warning out. I'm afraid it will look a bit too threatening. For now let's just not do any new error handling, even though if the toolchain fails to install the failure mode is pretty messy.

Instead, I'd prefer to make the way self_update responds to a failed toolchain install more robust, so that, if the toolchain install fails, the installer prints a message explaining what happened and how to proceed. But that's a pretty big patch on its own and I think can be done later.

This comment has been minimized.

@jimmycuadra

jimmycuadra Jul 15, 2016

Author Contributor

Good call. Reverted!

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jul 15, 2016

Thanks for this!

@jimmycuadra jimmycuadra force-pushed the jimmycuadra:custom-default-toolchain branch from 23db1f6 to f18aabc Jul 15, 2016

@brson brson merged commit ac3a5fb into rust-lang:master Jul 19, 2016

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@liuchong

This comment has been minimized.

Copy link

liuchong commented Sep 16, 2017

Got here from #559
so, seems the "--no-toolchains" did not implemented? 😹

@jimmycuadra jimmycuadra deleted the jimmycuadra:custom-default-toolchain branch Sep 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.