Created
February 24, 2021 23:14
-
-
Save dmgk/bd2da7979f50334a3f3d38f4b4028022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Mk/Uses/go.mk | |
=================================================================== | |
--- Mk/Uses/go.mk (revision 566511) | |
+++ Mk/Uses/go.mk (working copy) | |
@@ -162,7 +162,7 @@ | |
@${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies"; | |
@(cd ${DISTDIR}/${DIST_SUBDIR}; \ | |
[ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \ | |
- ${SETENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x) | |
+ ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=${GO_GOPROXY} ${GO_CMD} mod download -x) | |
.endif | |
.if !target(post-extract) | |
@@ -172,7 +172,7 @@ | |
@${LN} -sf ${WRKSRC} ${GO_WRKSRC} | |
. elif ${go_ARGS:Mmodules} && defined(GO_MODULE) | |
post-extract: | |
- @(cd ${GO_WRKSRC}; ${SETENV} ${GO_ENV} GOPROXY=off ${GO_CMD} mod vendor) | |
+ @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} GOPROXY=off ${GO_CMD} mod vendor) | |
. endif | |
.endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment