commit: f52b5bc93c2fe7f5ce1f20dea1c57410aad17a27
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 19 00:05:13 2024 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Aug 19 00:06:20 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f52b5bc9
dev-go/go-tools: Compile go packages selectively
This eliminates the need to use nonfatal and check for
expected binaries afterwards.
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
dev-go/go-tools/go-tools-0.24.0.ebuild | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/dev-go/go-tools/go-tools-0.24.0.ebuild
b/dev-go/go-tools/go-tools-0.24.0.ebuild
index 312e41f08ccd..442e64290744 100644
--- a/dev-go/go-tools/go-tools-0.24.0.ebuild
+++ b/dev-go/go-tools/go-tools-0.24.0.ebuild
@@ -29,12 +29,8 @@ GO_TOOLS_BINS=(
src_compile() {
local bin packages
- readarray -t packages < <(ego list ./...)
- GOBIN="${S}/bin" nonfatal ego install -work "${packages[@]}" || true
- for bin in "${GO_TOOLS_BINS[@]}"; do
- [[ -x ${S}/bin/${bin} ]] || \
- die "File not found, check build log: ${S}/bin/${bin}"
- done
+ readarray -t packages < <(ego list ./... | grep -E "/($(echo
"${GO_TOOLS_BINS[@]}" | tr ' ' '|'))$")
+ GOBIN="${S}/bin" ego install -work "${packages[@]}"
}
src_test() {