Run go vet using nogo during build step
See https://github.com/bazelbuild/rules_go/blob/master/go/nogo.rst
These are correctness checks, not coding style linters, such that
compilation will fail if they do not pass.
They are also ran for external dependencies, with more or less
fine-grained exclusions.
Test Plan: Ran gazelle.sh and tests.
Bug: T472
X-Origin-Diff: phab/D269
GitOrigin-RevId: f932555ec8cbb9d0c09f2a3c6a0df94a0f6724a8
diff --git a/WORKSPACE b/WORKSPACE
index 0c95a1c..a3224f9 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -61,7 +61,10 @@
go_rules_dependencies()
-go_register_toolchains()
+go_register_toolchains(
+ go_version = "1.13",
+ nogo = "@//:nogo_vet",
+)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")