]> Cypherpunks repositories - gostls13.git/commit
cmd/go: more informative test failures when GOROOT is stale
authorDamien Neil <dneil@google.com>
Wed, 9 Nov 2022 01:02:49 +0000 (17:02 -0800)
committerDamien Neil <dneil@google.com>
Wed, 9 Nov 2022 17:39:55 +0000 (17:39 +0000)
commitcd8d1bca2cc2ec228b21e5df893fec7a2e766e08
treefb9bfaa2d917acca089e9f799f084e120a595de0
parent7a92c4fc637621368eb26a7e72bb027b29568e50
cmd/go: more informative test failures when GOROOT is stale

If GOROOT is stale, test fail when commands unexpectedly write to GOROOT.
Include an message in the test failure indicating that this is a possible
and expected reason for the failure, and how to fix it.

For #48698.

Change-Id: I057c20260bab09aebf684e8f20794ab8fc0ede1e
Reviewed-on: https://go-review.googlesource.com/c/go/+/448895
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Damien Neil <dneil@google.com>
src/cmd/go/go_test.go