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:
parent
a7ecffc460
commit
5656c73037
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue