mirror of https://github.com/golang/go.git
build: clear GO111MODULE during make.bash etc
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>
This commit is contained in:
parent
55e1fc930b
commit
2a07c50a5c
|
|
@ -64,6 +64,7 @@ set -e
|
||||||
|
|
||||||
unset GOBIN # Issue 14340
|
unset GOBIN # Issue 14340
|
||||||
unset GOFLAGS
|
unset GOFLAGS
|
||||||
|
unset GO111MODULE
|
||||||
|
|
||||||
if [ ! -f run.bash ]; then
|
if [ ! -f run.bash ]; then
|
||||||
echo 'make.bash must be run from $GOROOT/src' 1>&2
|
echo 'make.bash must be run from $GOROOT/src' 1>&2
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ setlocal
|
||||||
|
|
||||||
set GOBUILDFAIL=0
|
set GOBUILDFAIL=0
|
||||||
set GOFLAGS=
|
set GOFLAGS=
|
||||||
|
set GO111MODULE=
|
||||||
|
|
||||||
if exist make.bat goto ok
|
if exist make.bat goto ok
|
||||||
echo Must run make.bat from Go src directory.
|
echo Must run make.bat from Go src directory.
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ if(~ $1 -v) {
|
||||||
}
|
}
|
||||||
|
|
||||||
GOFLAGS=()
|
GOFLAGS=()
|
||||||
|
GO111MODULE=()
|
||||||
GOROOT = `{cd .. && pwd}
|
GOROOT = `{cd .. && pwd}
|
||||||
if(! ~ $#GOROOT_BOOTSTRAP 1)
|
if(! ~ $#GOROOT_BOOTSTRAP 1)
|
||||||
GOROOT_BOOTSTRAP = $home/go1.4
|
GOROOT_BOOTSTRAP = $home/go1.4
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ export GOPATH
|
||||||
unset CDPATH # in case user has it set
|
unset CDPATH # in case user has it set
|
||||||
unset GOBIN # Issue 14340
|
unset GOBIN # Issue 14340
|
||||||
unset GOFLAGS
|
unset GOFLAGS
|
||||||
|
unset GO111MODULE
|
||||||
|
|
||||||
export GOHOSTOS
|
export GOHOSTOS
|
||||||
export CC
|
export CC
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ set GOPATH=
|
||||||
:: Issue 14340: ignore GOBIN during all.bat.
|
:: Issue 14340: ignore GOBIN during all.bat.
|
||||||
set GOBIN=
|
set GOBIN=
|
||||||
set GOFLAGS=
|
set GOFLAGS=
|
||||||
|
set GO111MODULE=
|
||||||
|
|
||||||
rem TODO avoid rebuild if possible
|
rem TODO avoid rebuild if possible
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
# to be under $GOPATH, then some tests below will fail
|
||||||
GOBIN = () # Issue 14340
|
GOBIN = () # Issue 14340
|
||||||
GOFLAGS = ()
|
GOFLAGS = ()
|
||||||
|
GO111MODULE = ()
|
||||||
|
|
||||||
exec go tool dist test -rebuild $*
|
exec go tool dist test -rebuild $*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue