build-style/cargo.sh: run cargo install with --locked

Without --locked, cargo ignores the Cargo.lock file during install
and rebuilds the crate with updated dependencies.
This wastes time and makes builds unreproducable.
This commit is contained in:
Johannes 2019-09-26 00:52:51 +02:00 committed by Enno Boland
parent 98dcc53269
commit a2be11a086

View File

@ -18,6 +18,6 @@ do_install() {
: ${make_cmd:=cargo}
${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
${make_install_args}
--locked ${make_install_args}
rm "${DESTDIR}"/usr/.crates.toml
}