Disable cgo warnings for external repositories

Some cgo packages (like sqlite3) generate a ton of warnings which we
treat as errors. That prevents us from using some of these Go
libraries.

This patch suppresses warnings in third-party cgo code.

This came up during the development of
Ia9561e3fa35c213bbe645b461fcae36ecaf722fa. The sqlite3 cgo module
fails compilation without a patch like this.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I2d1d031a06c8c638f715ff602200ec6db7140214
diff --git a/WORKSPACE b/WORKSPACE
index 03335b4..52af239 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -926,6 +926,12 @@
 
 http_archive(
     name = "io_bazel_rules_go",
+    patch_args = [
+        "-p1",
+    ],
+    patches = [
+        "@//third_party:rules_go/0001-Disable-warnings-for-external-repositories.patch",
+    ],
     sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
     urls = [
         "https://www.frc971.org/Build-Dependencies/rules_go-v0.29.0.zip",