]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: update tryDirs list to match make scripts
authorDmitri Shuralyov <dmitshur@golang.org>
Tue, 20 Aug 2024 23:12:19 +0000 (19:12 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 27 Aug 2024 17:23:37 +0000 (17:23 +0000)
commitaa2e8b9ce2a344f46dfc6346f5ea83c573784464
treefc73aabb30c6bb424fdfdd2dfdbe5eb7a77213d1
parent6f00a4efe4d7ed9ac871a8b025a022f964cfa4e2
cmd/dist: update tryDirs list to match make scripts

The $HOME/sdk/go1.17 and $HOME/go1.17 paths were initially added as
places to look for a bootstrap toolchain to make.{bash,bat,rc} scripts
and in cmd/dist (CL 370274). Those two go1.17 directories have since
been updated in the make scripts to go1.20.6 (CL 512275) and later on
to go1.22.6 (CL 606156), but the same list in cmd/dist was missed.

Fix the inconsistency now. But maybe cmd/dist doesn't need to maintain
this logic, if it's required to be invoked via one of the make scripts,
since they're responsible for setting GOROOT_BOOTSTRAP?

For #64751.

Change-Id: I0988005c559014791363138f2f722cc1f9a78bcf
Reviewed-on: https://go-review.googlesource.com/c/go/+/607821
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/dist/buildtool.go