Update rules_go to 0.22.1 to fix @go_googleapis issue
This fixes a known issue[1] with rules_go in combination with
Bazel 2.2+ and some protobuf generates (like @go_googleapis).
Also updates a few dependencies because rules_go switched to
a newer GRPC compiler.
[1] https://github.com/bazelbuild/bazel/issues/10681
Test Plan: bazel test //... works again on Bazel 2.2+
X-Origin-Diff: phab/D436
GitOrigin-RevId: d5700cbaa59fefd791f5c9902195f0294a0e6f07
diff --git a/WORKSPACE b/WORKSPACE
index ddc1af8..bbd126a 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -30,10 +30,10 @@
http_archive(
name = "io_bazel_rules_go",
- sha256 = "e88471aea3a3a4f19ec1310a55ba94772d087e9ce46e41ae38ecebe17935de7b",
+ sha256 = "e6a6c016b0663e06fa5fccf1cd8152eab8aa8180c583ec20c872f4f9953a7ac5",
urls = [
- "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz",
- "https://github.com/bazelbuild/rules_go/releases/download/v0.20.3/rules_go-v0.20.3.tar.gz",
+ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.1/rules_go-v0.22.1.tar.gz",
+ "https://github.com/bazelbuild/rules_go/releases/download/v0.22.1/rules_go-v0.22.1.tar.gz",
],
)
@@ -92,24 +92,46 @@
# third_party external repositories
load("//third_party/linux:external.bzl", "linux_external")
-linux_external(name="linux", version="5.4.7")
+
+linux_external(
+ name = "linux",
+ version = "5.4.7",
+)
load("//third_party/edk2:external.bzl", "edk2_external")
-edk2_external(name="edk2")
+
+edk2_external(name = "edk2")
load("//third_party/kubernetes:external.bzl", "kubernetes_external")
-kubernetes_external(name="kubernetes", version="1.16.4")
+
+kubernetes_external(
+ name = "kubernetes",
+ version = "1.16.4",
+)
load("//third_party/musl:external.bzl", "musl_external")
-musl_external(name="musl", version="1.1.24")
+
+musl_external(
+ name = "musl",
+ version = "1.1.24",
+)
load("//third_party/util-linux:external.bzl", "util_linux_external")
-util_linux_external(name="util_linux", version="2.34")
+
+util_linux_external(
+ name = "util_linux",
+ version = "2.34",
+)
load("//third_party/xfsprogs:external.bzl", "xfsprogs_external")
-xfsprogs_external(name="xfsprogs", version="5.2.1")
+
+xfsprogs_external(
+ name = "xfsprogs",
+ version = "5.2.1",
+)
load("@kubernetes//build:workspace_mirror.bzl", "mirror")
+
http_archive(
name = "io_k8s_repo_infra",
sha256 = "f6d65480241ec0fd7a0d01f432938b97d7395aeb8eefbe859bb877c9b4eafa56",
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index c69574a..32ff950 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -207,8 +207,8 @@
go_repository(
name = "com_github_golang_protobuf",
importpath = "github.com/golang/protobuf",
- sum = "h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=",
- version = "v1.3.2",
+ sum = "h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=",
+ version = "v1.3.3",
)
go_repository(
@@ -494,8 +494,8 @@
go_repository(
name = "com_github_prometheus_client_model",
importpath = "github.com/prometheus/client_model",
- sum = "h1:S/YWwWx/RA8rT8tKFRuGUZhuA90OyIBpPCXkcbwU8DE=",
- version = "v0.0.0-20190129233127-fd36f4220a90",
+ sum = "h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=",
+ version = "v0.0.0-20190812154241-14fe0d1b01d4",
)
go_repository(
name = "com_github_prometheus_common",
@@ -710,8 +710,8 @@
name = "io_etcd_go_etcd",
build_file_proto_mode = "disable",
importpath = "go.etcd.io/etcd",
- sum = "h1:lWF4f9Nypl1ZqSb4gLeh/DGvBYVaUYHuiB93teOmwgc=",
- version = "v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738",
+ sum = "h1:TcJ8iNja1CH/h/3QcsydKL5krb0MIPjMJLYgzClNaSQ=",
+ version = "v0.5.0-alpha.5.0.20200306183522-221f0cc107cb",
)
go_repository(
@@ -730,22 +730,22 @@
go_repository(
name = "org_golang_google_genproto",
importpath = "google.golang.org/genproto",
- sum = "h1:nfPFGzJkUDX6uBmpN/pSw7MbOAWegH5QDQuoXFHedLg=",
- version = "v0.0.0-20190502173448-54afdca5d873",
+ sum = "h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE=",
+ version = "v0.0.0-20190819201941-24fa4b261c55",
)
go_repository(
name = "org_golang_google_grpc",
build_file_proto_mode = "disable",
importpath = "google.golang.org/grpc",
- sum = "h1:q4XQuHFC6I28BKZpo6IYyb3mNO+l7lSOxRuYTCiDfXk=",
- version = "v1.23.1",
+ sum = "h1:bO/TA4OxCOummhSf10siHuG7vJOiwh7SpRpFZDkOgl4=",
+ version = "v1.28.0",
)
go_repository(
name = "org_golang_x_crypto",
importpath = "golang.org/x/crypto",
- sum = "h1:ACG4HJsFiNMf47Y4PeRoebLNy/2lXT9EtprMuTFWt1M=",
- version = "v0.0.0-20190923035154-9ee001bba392",
+ sum = "h1:c0o/qxkaO2LF5t6fQrT4b5hzyggAkLLlCUjqfRxd8Q4=",
+ version = "v0.0.0-20191002192127-34f69633bfdc",
)
go_repository(
@@ -1253,3 +1253,45 @@
sum = "h1:HUkD4H4dYFIgu3Bns/3N6J5GmKHCEGnhYBwNu3fvXgA=",
version = "v0.4.14",
)
+ go_repository(
+ name = "com_github_census_instrumentation_opencensus_proto",
+ importpath = "github.com/census-instrumentation/opencensus-proto",
+ sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=",
+ version = "v0.2.1",
+ )
+ go_repository(
+ name = "com_github_cncf_udpa_go",
+ importpath = "github.com/cncf/udpa/go",
+ sum = "h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=",
+ version = "v0.0.0-20191209042840-269d4d468f6f",
+ )
+ go_repository(
+ name = "com_github_coreos_go_systemd_v22",
+ importpath = "github.com/coreos/go-systemd/v22",
+ sum = "h1:XJIw/+VlJ+87J+doOxznsAWIdmWuViOVhkQamW5YV28=",
+ version = "v22.0.0",
+ )
+ go_repository(
+ name = "com_github_coreos_license_bill_of_materials",
+ importpath = "github.com/coreos/license-bill-of-materials",
+ sum = "h1:vHRufSa2k8tfkcDdia1vJFa+oiBvvPxW94mg76PPAoA=",
+ version = "v0.0.0-20190913234955-13baff47494e",
+ )
+ go_repository(
+ name = "com_github_envoyproxy_go_control_plane",
+ importpath = "github.com/envoyproxy/go-control-plane",
+ sum = "h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=",
+ version = "v0.9.4",
+ )
+ go_repository(
+ name = "com_github_envoyproxy_protoc_gen_validate",
+ importpath = "github.com/envoyproxy/protoc-gen-validate",
+ sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=",
+ version = "v0.1.0",
+ )
+ go_repository(
+ name = "com_github_godbus_dbus_v5",
+ importpath = "github.com/godbus/dbus/v5",
+ sum = "h1:ZqHaoEF7TBzh4jzPmqVhE/5A1z9of6orkAe5uHoAeME=",
+ version = "v5.0.3",
+ )