newapkbuild: run cargo install with --locked

This forces cargo to install the exact versions of the dependencies
specified in Cargo.lock. This is essential for reproducible builds!
This commit is contained in:
Jakub Jirutka 2019-10-27 13:50:23 +01:00
parent b09bdddff3
commit 6c3b2e6b58
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ __EOF__
build_rust() {
cat >>APKBUILD<<__EOF__
cargo build --release
cargo build --release --locked
__EOF__
}