aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vet/main.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2019-02-28 16:21:48 -0500
committerBryan C. Mills <bcmills@google.com>2019-03-11 20:27:03 +0000
commit756a69c6c9d4c7d203e3c38d865240d5e5720efb (patch)
tree2fd8b44ed7b0c256e86f0babcfc011bd98951e21 /src/cmd/vet/main.go
parent486ca37b14f56b2e125fc3afbd900a5369532043 (diff)
downloadgo-756a69c6c9d4c7d203e3c38d865240d5e5720efb.tar.gz
go-756a69c6c9d4c7d203e3c38d865240d5e5720efb.zip
cmd: refresh cmd/vendor to match 'go mod vendor'
This change preserves the maximum versions from cmd/vendor/vendor.json where feasible, but bumps the versions of x/sys (for CL 162987) and x/tools (for CL 162989 and CL 160837) so that 'go test all' passes in module mode when run from a working directory in src/cmd. A small change to cmd/vet (not vendored) was necessary to preserve its flag behavior given a pristine copy of x/tools; see CL 162989 for more detail. This change was generated by running 'go mod vendor' at CL 164622. (Welcoooome to the fuuuuuture!) Updates #30228 Updates #30241 Change-Id: I889590318dc857d4a6e20c3023d09a27128d8255 Reviewed-on: https://go-review.googlesource.com/c/go/+/164618 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/vet/main.go')
-rw-r--r--src/cmd/vet/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/vet/main.go b/src/cmd/vet/main.go
index 4ec174b3cd..b845d95040 100644
--- a/src/cmd/vet/main.go
+++ b/src/cmd/vet/main.go
@@ -1,6 +1,8 @@
package main
import (
+ "cmd/internal/objabi"
+
"golang.org/x/tools/go/analysis/unitchecker"
"golang.org/x/tools/go/analysis/passes/asmdecl"
@@ -27,6 +29,8 @@ import (
)
func main() {
+ objabi.AddVersionFlag()
+
unitchecker.Main(
asmdecl.Analyzer,
assign.Analyzer,