From ea27964de5bb72704430a19f81b39de7b8c463b2 Mon Sep 17 00:00:00 2001 From: 0x5c Date: Sat, 7 May 2022 19:41:22 -0400 Subject: [PATCH] common/build-style/cargo.sh: use offline install This prevents `cargo install` from wasting time fetching the crate registry. --- 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 573a69003614..4c456394df5b 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -20,7 +20,7 @@ do_install() { : ${make_install_args:=--path .} ${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ - --locked ${configure_args} ${make_install_args} + --offline --locked ${configure_args} ${make_install_args} rm -f "${DESTDIR}"/usr/.crates.toml rm -f "${DESTDIR}"/usr/.crates2.json