From 8715effbd4aae9db5b8554224b688a3604fd059f Mon Sep 17 00:00:00 2001 From: Johannes Date: Thu, 26 Sep 2019 00:52:51 +0200 Subject: [PATCH] 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. --- common/build-style/cargo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh index a2a0dfe3744..cff16bee082 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -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 }