Skip to content

Commit

Permalink
specify the minimal profile when installing rust toolchain
Browse files Browse the repository at this point in the history
this is needed bc of some bug(?) in rustup not being able to install the
necessary toolchain without error using the `default` profile

see my comment in the rustup project:
rust-lang/rustup#2661 (comment)
  • Loading branch information
blesson3 committed Feb 22, 2021
1 parent 4f213ba commit e05540f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn available_targets(toolchain: &str, verbose: bool) -> Result<AvailableTarg

pub fn install_toolchain(toolchain: &str, verbose: bool) -> Result<()> {
Command::new("rustup")
.args(&["toolchain", "add", toolchain])
.args(&["toolchain", "add", toolchain, "--profile", "minimal"])
.run(verbose)
.chain_err(|| format!("couldn't install toolchain `{}`", toolchain))
}
Expand Down

0 comments on commit e05540f

Please sign in to comment.