mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-11 06:37:31 +00:00
abuild: set --locked for all cargo invocations
That ensures that we always use the versions specified in the Cargo.lock file, which is required for reproducible builds
This commit is contained in:
parent
dd24cdf85f
commit
d3c93a3d15
@ -150,7 +150,7 @@ __EOF__
|
||||
|
||||
check_rust() {
|
||||
cat >>APKBUILD<<__EOF__
|
||||
cargo test --release
|
||||
cargo test --release --locked
|
||||
__EOF__
|
||||
}
|
||||
|
||||
@ -199,7 +199,7 @@ __EOF__
|
||||
|
||||
package_rust() {
|
||||
cat >>APKBUILD<<__EOF__
|
||||
cargo install --path . --root="\$pkgdir/usr"
|
||||
cargo install --locked --path . --root="\$pkgdir/usr"
|
||||
rm "\$pkgdir"/usr/.crates.toml
|
||||
__EOF__
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user