zola: Add --locked flag to cargo install command

The `--locked` flag is necessary to ensure that `cargo install` uses
the dependency versions in the `Cargo.lock` file.
This commit is contained in:
Sam Ford 2019-10-25 23:12:51 -04:00 committed by Izaak Beekman
parent a7ecffc460
commit 5656c73037
No known key found for this signature in database
GPG key ID: A93CE70D8021BD0F

View file

@ -15,7 +15,7 @@ class Zola < Formula
depends_on "rust" => :build
def install
system "cargo", "install", "--root", prefix, "--path", "."
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
bash_completion.install "completions/zola.bash"
zsh_completion.install "completions/_zola"