From: Guoqi Chen Date: Mon, 9 Jun 2025 09:04:55 +0000 (+0800) Subject: all.{bash,rc}: use "../bin/go tool dist" instead of "%GOTOOLDIR%/dist" print build... X-Git-Tag: go1.25rc1~1^2~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f18d046568496dd331657df4ba90218821cb9ffd;p=gostls13.git all.{bash,rc}: use "../bin/go tool dist" instead of "%GOTOOLDIR%/dist" print build info After CL 677558, when running all.bash, the binaries of commands such as dist, nm, and pprof are no longer built by default, so when running all.bash, "./all.bash: line 13: /home/golang/pkg/tool/linux_amd64/dist: No such file or directory" will be printed, and the return result of the all.bash script is non-zero. Although the "dist" command won't be installed in $GOTOOLDIR anymore, but it will be built and cached, and ../bin/go tool dist will reuse the cached binary. For #71867 Change-Id: I802eeafdb866e7d80c42da3e0955bb32def7b037 Reviewed-on: https://go-review.googlesource.com/c/go/+/680135 Reviewed-by: Cherry Mui Reviewed-by: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob --- diff --git a/src/all.bash b/src/all.bash index 1b8ca093e4..adbc60e361 100755 --- a/src/all.bash +++ b/src/all.bash @@ -10,4 +10,4 @@ if [ ! -f make.bash ]; then fi . ./make.bash "$@" --no-banner bash run.bash --no-rebuild -"$GOTOOLDIR/dist" banner # print build info +../bin/go tool dist banner # print build info diff --git a/src/all.rc b/src/all.rc index 45b1261a20..ad8c3e143e 100755 --- a/src/all.rc +++ b/src/all.rc @@ -13,4 +13,4 @@ if(! test -f make.rc){ . ./make.rc --no-banner $* bind -b $GOROOT/bin /bin ./run.rc --no-rebuild -$GOTOOLDIR/dist banner # print build info +../bin/go tool dist banner # print build info