just: add --locked flag to cargo install

Closes #46179.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 21:34:50 -04:00 committed by FX Coudert
parent d534cb61e7
commit bcb0b0d252

View file

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