Skip to content

Commit

Permalink
Allow more time for rustup-init install
Browse files Browse the repository at this point in the history
Due to rust-lang/rustup#1540, installing the docs on Windows can be
slow enough to time out a fresh rustc install. Marking this `Command`
as `quiet` increases the timeout.
  • Loading branch information
ecstatic-morse committed Jul 19, 2019
1 parent 5c3d81b commit ff6b683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/rustup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,16 @@ impl InstallableTool for Rustup {
native::make_executable(installer)?;
}

// TODO(rustup.rs#998): Remove `.quiet(true)` once rust-docs is no longer a mandatory
// component.
RunCommand::new(installer.to_string_lossy().as_ref())
.args(&[
"-y",
"--no-modify-path",
"--default-toolchain",
MAIN_TOOLCHAIN_NAME,
])
.quiet(true)
.local_rustup(true)
.run()
.with_context(|_| "unable to install rustup")?;
Expand Down

0 comments on commit ff6b683

Please sign in to comment.