-
Notifications
You must be signed in to change notification settings - Fork 893
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
Custom and interactive install #293
Conversation
Sounds/looks good to me! Looks like tests are failing but otherwise r=me |
14cbd2f
to
8cf2520
Compare
@bors r=alexcrichton |
@bors r=alexcrichton |
Add `confirm_advanced` and `advanced_install` functions.
This allows users to change --no-modify-path and --default-toolchain from the interactive cli installer. A typical session looks like ``` ... snip ... To cancel installation, type "n", or for more options type "a", then press the Enter key to continue. Press the Enter key to install Rust. a Selected installation options: default toolchain: stable modify PATH variable: yes I'm going to ask you the value of each these installation options. You may simply press the Enter key to accept the default. Default toolchain? (stable/beta/nightly) nightly Modify PATH variable? (y/n) n That's it! We're ready to install Rust. Selected installation options: default toolchain: nightly modify PATH variable: no To cancel installation, type "n", or for more options type "a", then press the Enter key to continue. Press the Enter key to install Rust. info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu' info: default toolchain set to 'nightly' nightly unchanged - rustc 1.9.0-nightly (177905703 2016-04-08) Rust is installed now. Great! To get started you need Cargo's bin directory in your `PATH` environment variable. To configure your current shell run `source /home/brian/dev/.cargo/env`. ```
@Victorcccc That image shows several issues. The first is that you've given an invalid value for Good luck, I hope you manage to resolve your installation problem, and welcome to Rust. |
This does a few things to make installation customizable.
The
--no-modify-path
flag disablesPATH
modification.rustup-setup.sh
passes its arguments torustup-setup.exe
.During the default interactive installation you can press "a" to enter "advanced installation", which just asks you the values of the two things that can be configured (path modification and default toolchain). We need this feature because it's the only way to change the installation options without finding out the command line options and starting installation over.
Here's what it looks like in action.
It could be a lot nicer still, but this is all the features I expect.
Fixes #271, #170.