rustup-init: add --locked flag to cargo install
Closes #46170. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
964c6d43d3
commit
4ac363fe98
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue