pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/go Forcibly turn off Go module support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc0dede6bd82
branches:  trunk
changeset: 411698:fc0dede6bd82
user:      maya <maya%pkgsrc.org@localhost>
date:      Tue Feb 18 18:02:58 2020 +0000

description:
Forcibly turn off Go module support.

We don't currently build any packages using modules, and the switch to
newer versions of Go has resulted in the default changing to modules
being sometimes enabled.
This now causes random packages to begin fetching from the Internet during
builds, which goes against pkgsrc policy.

Doesn't seem to harm the ability to build a random subset of the Go packages
in pkgsrc.

diffstat:

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

diffs (17 lines):

diff -r 3a14f611aabb -r fc0dede6bd82 lang/go/go-package.mk
--- a/lang/go/go-package.mk     Tue Feb 18 17:44:26 2020 +0000
+++ b/lang/go/go-package.mk     Tue Feb 18 18:02:58 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: go-package.mk,v 1.23 2019/09/10 20:19:54 rillig Exp $
+# $NetBSD: go-package.mk,v 1.24 2020/02/18 18:02:58 maya Exp $
 #
 # This file implements common logic for compiling Go programs in pkgsrc.
 #
@@ -68,6 +68,7 @@
 
 MAKE_ENV+=     GOPATH=${WRKDIR}:${BUILDLINK_DIR}/gopkg
 MAKE_ENV+=     GOCACHE=${WRKDIR}/.cache/go-build
+MAKE_ENV+=     GO111MODULE=off
 
 .if !target(post-extract)
 post-extract:



Home | Main Index | Thread Index | Old Index