[packages/rpm-pld-macros] set GOCACHE by default

atler atler at pld-linux.org
Wed Feb 23 20:23:37 CET 2022


commit 63ccb6343208ae86c143d8fec8344e95b0e21b35
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Feb 23 19:19:24 2022 +0100

    set GOCACHE by default

 macros.go | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/macros.go b/macros.go
index fcc1893..a310a5c 100644
--- a/macros.go
+++ b/macros.go
@@ -1,4 +1,5 @@
 %go_arches	%{ix86} %{x8664} %{armv5} %{armv6} %{armv7} aarch64 mips mipsel mips64 mips64le ppc64 ppc64le riscv64 s390x
+%go_cachedir		%{?buildsubdir:%{_builddir}/%{buildsubdir}/}.go-cache
 
 %__go	\\\
 %ifarch aarch64 \
@@ -31,6 +32,7 @@
 %ifarch mips mips64 ppc64 ppc64le riscv64 s390x \
 	GOARCH=${GOARCH-%{_arch}} \\\
 %endif \
+	%{?go_cachedir:GOCACHE="%{go_cachedir}"} \\\
 	%{?__jobs:GOMAXPROCS=%{__jobs}} \\\
 	GOOS=${GOOS-linux} \\\
 	/usr/bin/go
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-pld-macros.git/commitdiff/1a1df62c26c205e3c0a594f53bb842b03b818666



More information about the pld-cvs-commit mailing list