tokei: add --locked flag to cargo install

Closes #46151.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 19:29:17 -04:00 committed by FX Coudert
parent 00a5f76bd1
commit 6514075f9b

View file

@ -15,7 +15,7 @@ class Tokei < Formula
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", ".",
system "cargo", "install", "--locked", "--root", prefix, "--path", ".",
"--features", "all"
end