sn0int: add --locked flag to cargo install

Closes #46161.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 20:45:11 -04:00 committed by FX Coudert
parent 84efd2d0fc
commit 760a0eceaa

View file

@ -16,7 +16,7 @@ class Sn0int < Formula
depends_on "sphinx-doc" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
system "#{bin}/sn0int completions bash > sn0int.bash"
system "#{bin}/sn0int completions fish > sn0int.fish"