File tree 6 files changed +9
-1
lines changed
6 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 50
50
# GO_DISTFLAGS: extra flags to provide to "dist bootstrap".
51
51
52
52
set -e
53
+
54
+ unset GOBIN # Issue 14340
55
+
53
56
if [ ! -f run.bash ]; then
54
57
echo ' make.bash must be run from $GOROOT/src' 1>&2
55
58
exit 1
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ setlocal
68
68
set GOROOT = %GOROOT_BOOTSTRAP%
69
69
set GOOS =
70
70
set GOARCH =
71
+ set GOBIN =
71
72
" %GOROOT_BOOTSTRAP% \bin\go" build -o cmd\dist\dist.exe .\cmd\dist
72
73
endlocal
73
74
if errorlevel 1 goto fail
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ if(~ $sysname vx32)
80
80
81
81
if(! ~ $GOHOSTARCH $GOARCH || ! ~ $GOHOSTOS $GOOS){
82
82
echo '##### Building packages and commands for host,' $GOHOSTOS/$GOHOSTARCH^.
83
- GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH \
83
+ GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH GOBIN= \
84
84
$GOTOOLDIR/go_bootstrap install -gcflags $"GO_GCFLAGS -ldflags $"GO_LDFLAGS -v $pflag std cmd
85
85
echo
86
86
}
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export GOROOT # the api test requires GOROOT to be set.
11
11
unset CDPATH # in case user has it set
12
12
unset GOPATH # we disallow local import for non-local packages, if $GOROOT happens
13
13
# to be under $GOPATH, then some tests below will fail
14
+ unset GOBIN # Issue 14340
14
15
15
16
export GOHOSTOS
16
17
export CC
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ set GOBUILDFAIL=0
15
15
:: we disallow local import for non-local packages, if %GOROOT% happens
16
16
:: to be under %GOPATH%, then some tests below will fail
17
17
set GOPATH =
18
+ :: Issue 14340: ignore GOBIN during all.bat.
19
+ set GOBIN =
18
20
19
21
rem TODO avoid rebuild if possible
20
22
Original file line number Diff line number Diff line change @@ -9,5 +9,6 @@ eval `{go env}
9
9
10
10
GOPATH = () # we disallow local import for non-local packages, if $GOROOT happens
11
11
# to be under $GOPATH, then some tests below will fail
12
+ GOBIN = () # Issue 14340
12
13
13
14
exec go tool dist test -rebuild $*
You can’t perform that action at this time.
0 commit comments