Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] build-style/cargo.sh: run cargo install with --locked
@ 2019-09-25 23:00 voidlinux-github
  2019-09-26 13:11 ` [PR PATCH] [Merged]: " voidlinux-github
  0 siblings, 1 reply; 2+ messages in thread
From: voidlinux-github @ 2019-09-25 23:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

There is a new pull request by jnbr against master on the void-packages repository

https://github.com/jnbr/void-packages cargo-install
https://github.com/void-linux/void-packages/pull/14729

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


A patch file from https://github.com/void-linux/void-packages/pull/14729.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cargo-install-14729.patch --]
[-- Type: text/x-diff, Size: 895 bytes --]

From 8715effbd4aae9db5b8554224b688a3604fd059f Mon Sep 17 00:00:00 2001
From: Johannes <johannes.brechtmann@gmail.com>
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
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: build-style/cargo.sh: run cargo install with --locked
  2019-09-25 23:00 [PR PATCH] build-style/cargo.sh: run cargo install with --locked voidlinux-github
@ 2019-09-26 13:11 ` voidlinux-github
  0 siblings, 0 replies; 2+ messages in thread
From: voidlinux-github @ 2019-09-26 13:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

There's a merged pull request on the void-packages repository

build-style/cargo.sh: run cargo install with --locked
https://github.com/void-linux/void-packages/pull/14729

Description:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-26 13:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-25 23:00 [PR PATCH] build-style/cargo.sh: run cargo install with --locked voidlinux-github
2019-09-26 13:11 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).