sccache: add --locked flag to cargo install

Closes #46156.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 20:38:16 -04:00 committed by FX Coudert
parent 12acb19d7c
commit 48ad1827ae

View file

@ -20,7 +20,7 @@ class Sccache < Formula
# https://crates.io/crates/openssl#manual-configuration
ENV["OPENSSL_DIR"] = Formula["openssl@1.1"].opt_prefix
system "cargo", "install", "--root", prefix, "--path", ".",
system "cargo", "install", "--locked", "--root", prefix, "--path", ".",
"--features", "all"
end