svn commit: r566324 - head/Mk/Uses
Dmitri Goutnik
dmgk at FreeBSD.org
Mon Feb 22 19:17:14 UTC 2021
Author: dmgk
Date: Mon Feb 22 19:17:13 2021
New Revision: 566324
URL: https://svnweb.freebsd.org/changeset/ports/566324
Log:
Mk/Uses/go.mk: Disable network access in extract and test targets.
Reported by: Andrew Gierth <andrew at tao11.riddles.org.uk>
Modified:
head/Mk/Uses/go.mk
Modified: head/Mk/Uses/go.mk
==============================================================================
--- head/Mk/Uses/go.mk Mon Feb 22 19:06:24 2021 (r566323)
+++ head/Mk/Uses/go.mk Mon Feb 22 19:17:13 2021 (r566324)
@@ -162,7 +162,7 @@ post-fetch:
@${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies";
@(cd ${DISTDIR}/${DIST_SUBDIR}; \
[ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \
- ${SETENV} ${GO_ENV} ${GO_CMD} mod download -x)
+ ${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x)
.endif
.if !target(post-extract)
@@ -172,7 +172,7 @@ post-extract:
@${LN} -sf ${WRKSRC} ${GO_WRKSRC}
. elif ${go_ARGS:Mmodules} && defined(GO_MODULE)
post-extract:
- @(cd ${GO_WRKSRC}; ${SETENV} ${GO_ENV} ${GO_CMD} mod vendor)
+ @(cd ${GO_WRKSRC}; ${SETENV} ${GO_ENV} GOPROXY=off ${GO_CMD} mod vendor)
. endif
.endif
@@ -211,7 +211,7 @@ do-test:
(cd ${GO_WRKSRC}; \
for t in ${GO_TESTTARGET}; do \
${ECHO_MSG} "===> Testing $${t}"; \
- ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} test ${GO_TESTFLAGS} $${t}; \
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} test ${GO_TESTFLAGS} $${t}; \
done)
.endif
More information about the svn-ports-head
mailing list