toast: add --locked flag to cargo install

Closes #46150.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 19:27:14 -04:00 committed by FX Coudert
parent 3283a4bdba
commit 562ae0d1af

View file

@ -14,7 +14,7 @@ class Toast < Formula
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
end
test do