Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go go-module.mk: Run "go mod download" to prime t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/953e3ac61cd8
branches:  trunk
changeset: 435864:953e3ac61cd8
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Fri Jul 17 16:23:21 2020 +0000

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

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

diffstat:

 lang/go/go-module.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 48775274347a -r 953e3ac61cd8 lang/go/go-module.mk
--- a/lang/go/go-module.mk      Fri Jul 17 16:20:58 2020 +0000
+++ b/lang/go/go-module.mk      Fri Jul 17 16:23:21 2020 +0000
@@ -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 @@
 
 .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