]> Cypherpunks repositories - gostls13.git/commitdiff
all.{bash,rc}: use "../bin/go tool dist" instead of "%GOTOOLDIR%/dist" print build...
authorGuoqi Chen <chenguoqi@loongson.cn>
Mon, 9 Jun 2025 09:04:55 +0000 (17:04 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Tue, 10 Jun 2025 13:00:41 +0000 (06:00 -0700)
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 <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/all.bash
src/all.rc

index 1b8ca093e458969debfac8edfb17b17428638382..adbc60e361f4a64c55f57de517282bec0ee213fe 100755 (executable)
@@ -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
index 45b1261a2064a67c1e00816ed323898592d12cd2..ad8c3e143e53491dffb53fc5adc895ef5253d28e 100755 (executable)
@@ -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