pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/go



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Fri Jul 17 16:23:21 UTC 2020

Modified Files:
        pkgsrc/lang/go: go-module.mk

Log Message:
go-module.mk: Run "go mod download" to prime the module cache.

This was suggested by Russ Cox, instead of "go get".


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/go/go-module.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/go/go-module.mk
diff -u pkgsrc/lang/go/go-module.mk:1.2 pkgsrc/lang/go/go-module.mk:1.3
--- pkgsrc/lang/go/go-module.mk:1.2     Sat May 16 08:33:07 2020
+++ pkgsrc/lang/go/go-module.mk Fri Jul 17 16:23:21 2020
@@ -1,4 +1,4 @@
-# $NetBSD: go-module.mk,v 1.2 2020/05/16 08:33:07 bsiegert Exp $
+# $NetBSD: go-module.mk,v 1.3 2020/07/17 16:23:21 bsiegert Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -55,7 +55,7 @@ do-install:
 
 .PHONY: show-go-modules
 show-go-modules: ${WRKDIR}/.extract_done
-       ${RUN} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} GOPROXY= ${GO} get -d ${GO_BUILD_PATTERN}
+       ${RUN} cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} GOPROXY= ${GO} mod download -x
        ${RUN} cd ${WRKDIR}/.gopath/pkg/mod/cache/download && ${FIND} . -type f -name "*.mod" | ${SED} -e 's/\.\//GO_MODULE_FILES+=     /'
        ${RUN} cd ${WRKDIR}/.gopath/pkg/mod/cache/download && ${FIND} . -type f -name "*.zip" | ${SED} -e 's/\.\//GO_MODULE_FILES+=     /'
 



Home | Main Index | Thread Index | Old Index