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

View file

@ -5,14 +5,14 @@
do_build() { do_build() {
: ${make_cmd:=cargo auditable} : ${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() { do_check() {
: ${make_cmd:=cargo auditable} : ${make_cmd:=cargo auditable}
${make_check_pre} ${make_cmd} test --release --target ${RUST_TARGET} ${configure_args} \ ${make_check_pre} ${make_cmd} test --release --locked --target ${RUST_TARGET} \
${make_check_args} ${configure_args} ${make_check_args}
} }
do_install() { do_install() {