]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix TestScript/vet_flags
authorRuss Cox <rsc@golang.org>
Wed, 5 Nov 2025 18:49:48 +0000 (13:49 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 5 Nov 2025 20:30:31 +0000 (12:30 -0800)
commita494a26bc2d0ad52e0e265c2a1b9a3a964118699
tree9ae7c8f99e9ec11f8b8feb89d2d71801f3f43c0e
parenta8fb94969cb98efd84fa4f6fdccc14a5866828be
cmd/go: fix TestScript/vet_flags

Test caching can cause an incorrect test failure when the vet step result
is reused, leading to not printing a vet command line at all.
Avoid that with -a (we are also using -n so no real work is done).

Fixes one failing case in 'go test cmd/go' on my Mac.

Change-Id: I028284436b1ecc77145c886db902845b524f4b97
Reviewed-on: https://go-review.googlesource.com/c/go/+/718181
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
Reviewed-by: Michael Matloob <matloob@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/go/testdata/script/vet_flags.txt