miniserve: add --locked flag to cargo install

Closes #46172.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Rui Chen 2019-11-02 21:20:43 -04:00 committed by FX Coudert
parent a72b548d6d
commit 2fd9fabb09

View file

@ -24,7 +24,7 @@ class Miniserve < Formula
system "./install.sh", "--prefix=#{buildpath}/rust-nightly"
ENV.prepend_path "PATH", "#{buildpath}/rust-nightly/bin"
end
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
end
test do