commit | 5e07c533eb2dfa525b5d0f3782112a2a5c4b6912 | [log] [tgz] |
---|---|---|
author | Jiri Simsa <jsimsa@google.com> | Mon Aug 17 12:53:10 2015 -0700 |
committer | Jiri Simsa <jsimsa@google.com> | Mon Aug 17 20:08:32 2015 +0000 |
tree | ff4fb8f59dd82cbcd5182fe8a504cc31fd65a407 | |
parent | a8be9cdd9b41adf214d92ccef0ba9e09f24da270 [diff] |
TBR third_party/go/cmd/vet: whitelisting Vanadium named slice types This will prevent spurious go vet checks. Change-Id: I5b9bd842597fc7bb2873dd0e50dccfc4ae9ba8c1
diff --git a/go/src/golang.org/x/tools/README.google b/go/src/golang.org/x/tools/README.google index 5057fd8..52710dc 100644 --- a/go/src/golang.org/x/tools/README.google +++ b/go/src/golang.org/x/tools/README.google
@@ -7,4 +7,4 @@ Packages and tools supporting the Go programming language. Local Modifications: -No modifications. +Whitelisting Vanadium named slice types for go vet checks.
diff --git a/go/src/golang.org/x/tools/cmd/vet/whitelist/whitelist.go b/go/src/golang.org/x/tools/cmd/vet/whitelist/whitelist.go index d6f0dce..76a3198 100644 --- a/go/src/golang.org/x/tools/cmd/vet/whitelist/whitelist.go +++ b/go/src/golang.org/x/tools/cmd/vet/whitelist/whitelist.go
@@ -50,4 +50,11 @@ "image.Point": true, "image.Rectangle": true, "image.Uniform": true, + + // Vanadium named slice types. + // + // NOTE: These types were added to avoid spurious go vet warnings. + // Make sure to add them back if you update the source. + "v.io/v23/uniqueid.Id": true, + "v.io/v23/rpc.ListenAddrs": true, }