]> Cypherpunks repositories - gostls13.git/commitdiff
build: update comments about Go 1.4 in make.bash, make.bat, make.rc
authorRuss Cox <rsc@golang.org>
Fri, 12 Aug 2022 16:16:47 +0000 (12:16 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 15 Aug 2022 18:40:54 +0000 (18:40 +0000)
A few lingering references to Go 1.4 remain.
Fix them, and document the ones that should stay.

For #44505.
Fixes #54301.

Change-Id: Ieb9c0f08e4d1890ea3fdfd9c8df5493934ae7493
Reviewed-on: https://go-review.googlesource.com/c/go/+/423354
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/make.bash
src/make.bat
src/make.rc

index 54bb0705139e5eb8699c25a23b4546944f02dd32..4616502cec18ce9d0c3bb8f483ff9b990a8498eb 100755 (executable)
 # timing information to this file. Useful for profiling where the
 # time goes when these scripts run.
 #
-# GOROOT_BOOTSTRAP: A working Go tree >= Go 1.4 for bootstrap.
+# GOROOT_BOOTSTRAP: A working Go tree >= Go 1.17 for bootstrap.
 # If $GOROOT_BOOTSTRAP/bin/go is missing, $(go env GOROOT) is
-# tried for all "go" in $PATH. $HOME/go1.4 by default.
+# tried for all "go" in $PATH. By default, one of $HOME/go1.17,
+# $HOME/sdk/go1.17, or $HOME/go1.4, whichever exists, in that order.
+# We still check $HOME/go1.4 to allow for build scripts that still hard-code
+# that name even though they put newer Go toolchains there.
 
 set -e
 
@@ -172,7 +175,7 @@ IFS=$'\n'; for go_exe in $(type -ap go); do
 done; unset IFS
 if [ ! -x "$GOROOT_BOOTSTRAP/bin/go" ]; then
        echo "ERROR: Cannot find $GOROOT_BOOTSTRAP/bin/go." >&2
-       echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4." >&2
+       echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.17." >&2
        exit 1
 fi
 # Get the exact bootstrap toolchain version to help with debugging.
@@ -185,7 +188,7 @@ if $verbose; then
 fi
 if [ "$GOROOT_BOOTSTRAP" = "$GOROOT" ]; then
        echo "ERROR: \$GOROOT_BOOTSTRAP must not be set to \$GOROOT" >&2
-       echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4." >&2
+       echo "Set \$GOROOT_BOOTSTRAP to a working Go tree >= Go 1.17." >&2
        exit 1
 fi
 rm -f cmd/dist/dist
@@ -213,7 +216,7 @@ fi
 
 # Run dist bootstrap to complete make.bash.
 # Bootstrap installs a proper cmd/dist, built with the new toolchain.
-# Throw ours, built with Go 1.4, away after bootstrap.
+# Throw ours, built with the bootstrap toolchain, away after bootstrap.
 ./cmd/dist/dist bootstrap -a $vflag $GO_DISTFLAGS "$@"
 rm -f ./cmd/dist/dist
 
index fb3eba7c3ba23f8c104dd60bed3bda4f9649e2be..f956dc2064fe5868fac221c103620bc94036a590 100644 (file)
@@ -128,7 +128,7 @@ if x%4==x--no-banner set bootstrapflags=%bootstrapflags% --no-banner
 \r
 :: Run dist bootstrap to complete make.bash.\r
 :: Bootstrap installs a proper cmd/dist, built with the new toolchain.\r
-:: Throw ours, built with Go 1.4, away after bootstrap.\r
+:: Throw ours, built with the bootstrap toolchain, away after bootstrap.\r
 .\cmd\dist\dist.exe bootstrap -a %vflag% %bootstrapflags%\r
 if errorlevel 1 goto fail\r
 del .\cmd\dist\dist.exe\r
@@ -147,7 +147,7 @@ goto end
 \r
 :bootstrapfail\r
 echo ERROR: Cannot find %GOROOT_BOOTSTRAP%\bin\go.exe\r
-echo Set GOROOT_BOOTSTRAP to a working Go tree ^>= Go 1.4.\r
+echo Set GOROOT_BOOTSTRAP to a working Go tree ^>= Go 1.17.\r
 \r
 :fail\r
 set GOBUILDFAIL=1\r
index d9c7f2d8170a9ac666fe7db69501025c2e09bfd8..04f309b4c534b9418c2af866a8af4f1a6ee342e0 100755 (executable)
@@ -72,12 +72,12 @@ for(p in $path){
 }
 if(! test -x $GOROOT_BOOTSTRAP/bin/go){
        echo 'ERROR: Cannot find '$GOROOT_BOOTSTRAP'/bin/go.' >[1=2]
-       echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.' >[1=2]
+       echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.17.' >[1=2]
        exit bootstrap
 }
 if(~ $GOROOT_BOOTSTRAP $GOROOT){
        echo 'ERROR: $GOROOT_BOOTSTRAP must not be set to $GOROOT' >[1=2]
-       echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.' >[1=2]
+       echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.17.' >[1=2]
        exit bootstrap
 }
 
@@ -105,7 +105,7 @@ if(~ $1 --dist-tool){
 
 # Run dist bootstrap to complete make.bash.
 # Bootstrap installs a proper cmd/dist, built with the new toolchain.
-# Throw ours, built with Go 1.4, away after bootstrap.
+# Throw ours, built with the bootstrap toolchain, away after bootstrap.
 ./cmd/dist/dist bootstrap -a $vflag $*
 rm -f ./cmd/dist/dist