aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Goutnik <dmgk@FreeBSD.org>2022-06-22 22:32:43 +0000
committerDmitri Goutnik <dmgk@FreeBSD.org>2022-06-22 23:12:02 +0000
commitba923ff9e3a65d9aa6c711a65d6469d1791c9452 (patch)
tree2277e5ca1083ac4633eacce4361ffadac3dc6a6e
parent26115262867dcfb9d91e4d286cceee6c284427a3 (diff)
downloadports-ba923ff9e3a65d9aa6c711a65d6469d1791c9452.tar.gz
ports-ba923ff9e3a65d9aa6c711a65d6469d1791c9452.zip
Mk/Uses/go.mk: Do not append to EXTRACT_ONLY
Appending to EXTRACT_ONLY may re-add files that were already excluded by the port. Instead, set EXTRACT_ONLY only if it was not already defined and let the port handle it otherwise.
-rw-r--r--Mk/Uses/go.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/go.mk b/Mk/Uses/go.mk
index b2a5c1841383..b707b8f4c676 100644
--- a/Mk/Uses/go.mk
+++ b/Mk/Uses/go.mk
@@ -143,7 +143,7 @@ MASTER_SITES+= ${GO_GOPROXY}/${GO_MODNAME:C/([A-Z])/!\1/g:tl}/@v/
DISTFILES+= ${GO_MODFILE} ${GO_DISTFILE}
WRKSRC= ${WRKDIR}/${GO_MODNAME}@${GO_MODVERSION}
. endif
-EXTRACT_ONLY+= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//}
+EXTRACT_ONLY?= ${DISTFILES:N*.mod\:*:N*.mod:C/:.*//}
DIST_SUBDIR= go/${PKGORIGIN:S,/,_,g}/${DISTNAME}
FETCH_DEPENDS+= ${GO_CMD}:${GO_PORT} \
ca_root_nss>0:security/ca_root_nss