]> Cypherpunks repositories - gostls13.git/commit
cmd/vet/all: build the vet tool within the golang.org/x/tools repository
authorBryan C. Mills <bcmills@google.com>
Wed, 6 Mar 2019 16:06:14 +0000 (11:06 -0500)
committerBryan C. Mills <bcmills@google.com>
Wed, 6 Mar 2019 20:05:33 +0000 (20:05 +0000)
commita30421a39480efd766eb07518fb2edc4c9e0a8b8
treed39012429cfff93cdf9f5dc3d981e18d2fa2e3ef
parent4a9064ef41ccc65454564536f40cf7d5a00db8ad
cmd/vet/all: build the vet tool within the golang.org/x/tools repository

When running cmd/vet/all on multiple builders, the coordinator places
a copy of golang.org/x/tools at a consistent revision in the builders'
GOPATHs. Keep using the consistent revision in module mode by
executing the build from a working directory within that repository.

When not running on a builder, use 'go vet' directly instead of
building an arbitrarily stale vet tool from the user's GOPATH.

Updates #30228

Change-Id: I19bc809247378da98f3e6ac8572f61bda4518143
Reviewed-on: https://go-review.googlesource.com/c/go/+/165740
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/vet/all/main.go