create: cargo install --locked

This commit is contained in:
Dawid Dziurla 2019-10-30 20:13:45 +01:00
parent 2c51502050
commit 160a470118
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -167,7 +167,7 @@ module Homebrew
<% elsif mode == :python %>
virtualenv_install_with_resources
<% elsif mode == :rust %>
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
<% else %>
# Remove unrecognized options if warned by configure
system "./configure", "--disable-debug",