common/build-style/cargo.sh: use --locked for build and check as well

This commit is contained in:
Jan Christian Grünhage 2023-04-02 16:25:24 +02:00 committed by classabbyamp
parent 219a03b59d
commit 3c3b8a2e7b
1 changed files with 3 additions and 3 deletions

View File

@ -5,14 +5,14 @@
do_build() {
: ${make_cmd:=cargo auditable}
${make_cmd} build --release --target ${RUST_TARGET} ${configure_args}
${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args}
}
do_check() {
: ${make_cmd:=cargo auditable}
${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \
${make_check_args}
${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
${configure_args} ${make_check_args}
}
do_install() {