]> Cypherpunks repositories - gostls13.git/commitdiff
build: clear GO111MODULE during make.bash etc
authorRuss Cox <rsc@golang.org>
Fri, 16 Nov 2018 17:47:33 +0000 (12:47 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 16 Nov 2018 18:54:22 +0000 (18:54 +0000)
The standard build assumes the variable is unset.
Make it so, like we do for GOFLAGS, GOBIN, and so on.

Change-Id: I4ad5695f8021b08bd1a35dd99112970a813d247c
Reviewed-on: https://go-review.googlesource.com/c/149959
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/make.bash
src/make.bat
src/make.rc
src/run.bash
src/run.bat
src/run.rc

index 78882d98341f6eede9a9d68200cfe41eceeaf5cf..13497eb039d89e06e8724e676a05f467819cba04 100755 (executable)
@@ -64,6 +64,7 @@ set -e
 
 unset GOBIN # Issue 14340
 unset GOFLAGS
+unset GO111MODULE
 
 if [ ! -f run.bash ]; then
        echo 'make.bash must be run from $GOROOT/src' 1>&2
index 9ca7afb5aa97900c20dd6483567f05fe8932d1ac..69275e22568a2ef1bddd4bcdbd989e91f4a4b03a 100644 (file)
@@ -48,6 +48,7 @@ setlocal
 
 set GOBUILDFAIL=0
 set GOFLAGS=
+set GO111MODULE=
 
 if exist make.bat goto ok
 echo Must run make.bat from Go src directory.
index a97dfc8a0105fc4a21184f0156995cfca2d1283f..5f888c19fd7bdb6dc0a55cdd6b00dc1ae034fa36 100755 (executable)
@@ -48,6 +48,7 @@ if(~ $1 -v) {
 }
 
 GOFLAGS=()
+GO111MODULE=()
 GOROOT = `{cd .. && pwd}
 if(! ~ $#GOROOT_BOOTSTRAP 1)
        GOROOT_BOOTSTRAP = $home/go1.4
index c14f4a206d3f3d968cfae4ca9bfd8d5810ed457b..1c6c4244349f55fe653a17175573f4615f9a03ae 100755 (executable)
@@ -21,6 +21,7 @@ export GOPATH
 unset CDPATH   # in case user has it set
 unset GOBIN     # Issue 14340
 unset GOFLAGS
+unset GO111MODULE
 
 export GOHOSTOS
 export CC
index 0e0c413617c7653bdad4e8333cf253705a89d575..123edcc35dd7d636bfb14d2ce38f99a0483f3b0c 100644 (file)
@@ -18,6 +18,7 @@ set GOPATH=
 :: Issue 14340: ignore GOBIN during all.bat.
 set GOBIN=
 set GOFLAGS=
+set GO111MODULE=
 
 rem TODO avoid rebuild if possible
 
index 49d6fd9a4df1e6fa28c51fe08f8268a4362cafb1..c346f5cf5c6a27ec672aa7b65220cff4e2070423 100755 (executable)
@@ -11,5 +11,6 @@ GOPATH = () # we disallow local import for non-local packages, if $GOROOT happen
             # to be under $GOPATH, then some tests below will fail
 GOBIN = () # Issue 14340
 GOFLAGS = ()
+GO111MODULE = ()
 
 exec go tool dist test -rebuild $*