Skip to content

Instantly share code, notes, and snippets.

@dmgk
Created February 20, 2021 22:58
Show Gist options
  • Save dmgk/b70f1ae9e849921deb49052b133eb195 to your computer and use it in GitHub Desktop.
Save dmgk/b70f1ae9e849921deb49052b133eb195 to your computer and use it in GitHub Desktop.
Index: Mk/Uses/go.mk
===================================================================
--- Mk/Uses/go.mk (revision 566192)
+++ Mk/Uses/go.mk (working copy)
@@ -161,7 +161,7 @@
post-fetch:
@${ECHO_MSG} "===> Fetching ${GO_MODNAME} dependencies";
@(cd ${DISTDIR}/${DIST_SUBDIR}; \
- ${RLN} ${GO_MODFILE} go.mod; \
+ [ -e go.mod ] || ${RLN} ${GO_MODFILE} go.mod; \
${SETENV} ${GO_ENV} ${GO_CMD} mod download -x)
.endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment