rustup-init: add --locked flag to cargo install

Closes #46170.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 21:15:19 -04:00 committed by FX Coudert
parent 964c6d43d3
commit 4ac363fe98

View file

@ -18,7 +18,7 @@ class RustupInit < Formula
cargo_home.mkpath
ENV["CARGO_HOME"] = cargo_home
system "cargo", "install", "--root", prefix, "--path", ".",
system "cargo", "install", "--locked", "--root", prefix, "--path", ".",
"--features", "no-self-update"
end