git: ba923ff9e3a6 - main - Mk/Uses/go.mk: Do not append to EXTRACT_ONLY

From: Dmitri Goutnik <dmgk_at_FreeBSD.org>
Date: Wed, 22 Jun 2022 23:12:50 UTC
The branch main has been updated by dmgk:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba923ff9e3a65d9aa6c711a65d6469d1791c9452

commit ba923ff9e3a65d9aa6c711a65d6469d1791c9452
Author:     Dmitri Goutnik <dmgk@FreeBSD.org>
AuthorDate: 2022-06-22 22:32:43 +0000
Commit:     Dmitri Goutnik <dmgk@FreeBSD.org>
CommitDate: 2022-06-22 23:12:02 +0000

    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.
---
 Mk/Uses/go.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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