[packages/rpm-pld-macros] don't override GOCACHE if it's already set

atler atler at pld-linux.org
Mon Feb 28 23:34:42 CET 2022


commit 3a11946f41bab9506fbe7f019caaec70b20c58ee
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Feb 28 19:08:31 2022 +0100

    don't override GOCACHE if it's already set

 macros.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/macros.go b/macros.go
index a310a5c..da7b3d2 100644
--- a/macros.go
+++ b/macros.go
@@ -32,7 +32,7 @@
 %ifarch mips mips64 ppc64 ppc64le riscv64 s390x \
 	GOARCH=${GOARCH-%{_arch}} \\\
 %endif \
-	%{?go_cachedir:GOCACHE="%{go_cachedir}"} \\\
+	%{?go_cachedir:GOCACHE="${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/549e8af57e755a823ce87d36e31b7a484558e157



More information about the pld-cvs-commit mailing list