Merge pull request #6664 from dawidd6/create-rust-locked

create: cargo install --locked
This commit is contained in:
Mike McQuaid 2019-10-31 08:35:50 +00:00 committed by GitHub
commit aa40b805ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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