pastel: add --locked flag to cargo install

Closes #46165.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 21:08:13 -04:00 committed by FX Coudert
parent 0e604ac730
commit 21f5d6bad6

View file

@ -16,7 +16,7 @@ class Pastel < Formula
def install
ENV["SHELL_COMPLETIONS_DIR"] = buildpath/"completions"
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
bash_completion.install "completions/pastel.bash"
zsh_completion.install "completions/_pastel"