mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 17:17:03 +02:00
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:
parent
98dcc53269
commit
a2be11a086
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue