]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: vet non-test packages in short mode
authorRuss Cox <rsc@golang.org>
Wed, 20 Nov 2024 13:01:57 +0000 (08:01 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 21 Nov 2024 16:10:16 +0000 (16:10 +0000)
commitf7b15264c8656cdda5db1364f30f813dabd743f4
treefc025f1c89fc6658aedee33869f4f8a88196e603
parentce33585a1a06013f197ed95cc750e01bde5319c2
cmd/dist: vet non-test packages in short mode

Pass all packages to go test, even if they don't have test files,
so that go test can still run vet.

I just got burned by a vet error in a package without a test
showing up when I added an (unrelated) test.
There are not enough packages without tests to be worth
the "savings" of not letting the go command vet those packages.

For #60463.

Change-Id: Ib9258655151144dce6a51deeae73d651aa46cb2c
Reviewed-on: https://go-review.googlesource.com/c/go/+/630015
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/dist/test.go