Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] build-style/go: make do_install() really fail on errors.
@ 2019-06-13 15:54 voidlinux-github
  2019-06-13 15:54 ` voidlinux-github
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: voidlinux-github @ 2019-06-13 15:54 UTC (permalink / raw)
  To: ml

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

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

https://github.com/xtraeme/void-packages build-style-go
https://github.com/void-linux/void-packages/pull/12442

build-style/go: make do_install() really fail on errors.
This fixes detection of some go packages (doctl) that are
simply empty because it couldn't find the binaries in $GOPATH/bin.

Still affected packages must be fixed, doctl being one of them.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-build-style-go-12442.patch --]
[-- Type: application/text/x-diff, Size: 883 bytes --]

From 1901f1aaf0685726be6cdefcb837ce2f198034a9 Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Thu, 13 Jun 2019 17:51:39 +0200
Subject: [PATCH] build-style/go: make do_install() really fail on errors.

This fixes detection of some go packages (doctl) that are
simply empty because it couldn't find the binaries in $GOPATH/bin.

Still affected packages must be fixed, doctl being one of them.
---
 common/build-style/go.sh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/common/build-style/go.sh b/common/build-style/go.sh
index 98f95bea2e5..f6b772c7704 100644
--- a/common/build-style/go.sh
+++ b/common/build-style/go.sh
@@ -41,8 +41,7 @@ do_build() {
 }
 
 do_install() {
-	find "${GOPATH}/bin" -type f -executable | while read line
-	do
-		vbin "${line}"
+	for f in "$(find "${GOPATH}/bin" -type f -executable)"; do
+		vbin "$f"
 	done
 }

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

end of thread, other threads:[~2019-11-08  5:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-13 15:54 [PR PATCH] build-style/go: make do_install() really fail on errors voidlinux-github
2019-06-13 15:54 ` voidlinux-github
2019-06-13 17:52 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-13 17:52 ` voidlinux-github
2019-06-14  3:09 ` voidlinux-github
2019-06-14  7:31 ` voidlinux-github
2019-11-08  5:38 ` voidlinux-github
2019-11-08  5:47 ` 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).