]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: reject accidental use of internal packages from bootstrap toolchain
authorRuss Cox <rsc@golang.org>
Wed, 24 Apr 2024 16:59:02 +0000 (12:59 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 9 May 2024 13:50:06 +0000 (13:50 +0000)
commit805f6b3f5db714ce8f7dae2776748f6df96f288b
tree673f465998ec560bfee7af13f95cb21b41bd9808
parentacda0107ba065f1e049ab3b6a6fdde72762a6e43
cmd/dist: reject accidental use of internal packages from bootstrap toolchain

The compiler was accidentally using internal/godebug from
the Go 1.20 bootstrap toolchain and didn't get the behavior
it expected. Generalizing, we should never assume we know
the behavior of an internal package from an earlier bootstrap
toolchain, so disallow that case in cmd/dist.

Change-Id: I41e079f6120f4081124619bbe2b30069c96b9f29
Reviewed-on: https://go-review.googlesource.com/c/go/+/581496
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/dist/buildtool.go