third_party/go: pay off some technical debt and hide the bodies
This is an amalgamation of a handful of small changes to Go deps.
Notably:
- we remove our opencensus-proto fork, use upstream, use exclude=src to
fix the build
- unvendorify some deps
- bump io_rules_go to fix WKT resolution
Notably, we now do not have the 'protoc-gen-go' error when running
kubecfg/kubectl anymore.
Change-Id: I34fb9e78b2b12e4543142183d601d01987076f32
diff --git a/third_party/go/repositories.bzl b/third_party/go/repositories.bzl
index 8449dd3..2a9c249 100644
--- a/third_party/go/repositories.bzl
+++ b/third_party/go/repositories.bzl
@@ -26,8 +26,9 @@
name = "com_github_bitnami_kubecfg",
importpath = "github.com/bitnami/kubecfg",
vcs = "git",
- commit = "b6817a94492c561ed61a44eeea2d92dcf2e6b8c0",
+ commit = "5070ed28ed12016b0ca75dcfd257f567f581c095",
remote = "https://github.com/q3k/kubecfg",
+ build_extra_args = ["-exclude=vendor"],
)
go_repository(
@@ -519,11 +520,6 @@
tag = "v11.5.0",
)
- native.local_repository(
- name = "com_github_census_instrumentation_opencensus_proto",
- path = "./third_party/go/opencensus-proto",
- )
-
go_repository(
name = "com_github_client9_misspell",
importpath = "github.com/client9/misspell",
@@ -552,12 +548,14 @@
name = "com_github_docker_cli",
commit = "54c19e67f69c",
importpath = "github.com/docker/cli",
+ build_extra_args = ["-exclude=vendor"],
)
go_repository(
name = "com_github_docker_distribution",
importpath = "github.com/docker/distribution",
tag = "v2.7.1",
+ build_extra_args = ["-exclude=vendor"],
)
go_repository(
@@ -570,6 +568,7 @@
name = "com_github_docker_docker_ce",
commit = "f53bd8bb8e43",
importpath = "github.com/docker/docker-ce",
+ build_extra_args = ["-exclude=components/cli/vendor"],
)
go_repository(
@@ -636,6 +635,7 @@
name = "com_github_genuinetools_reg",
commit = "d959057b30da",
importpath = "github.com/genuinetools/reg",
+ build_extra_args = ["-exclude=vendor"],
)
go_repository(
@@ -695,7 +695,8 @@
go_repository(
name = "com_github_grpc_ecosystem_grpc_gateway",
importpath = "github.com/grpc-ecosystem/grpc-gateway",
- tag = "v1.9.5",
+ sum = "h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo=",
+ version = "v1.16.0",
)
go_repository(
@@ -916,7 +917,8 @@
go_repository(
name = "io_opencensus_go_contrib_exporter_ocagent",
importpath = "contrib.go.opencensus.io/exporter/ocagent",
- tag = "v0.6.0",
+ sum = "h1:BEfdCTXfMV30tLZD8c9n64V/tIZX5+9sXiuFLnrr1k8=",
+ version = "v0.7.0",
)
go_repository(
@@ -1781,3 +1783,10 @@
sum = "h1:K6V0Kwa5efKo60sqbTk1FOBbltdyX9Klw2a9+lKhA18=",
version = "v0.0.0-20201101162038-25d840ce174a",
)
+ go_repository(
+ name = "com_github_census_instrumentation_opencensus_proto",
+ importpath = "github.com/census-instrumentation/opencensus-proto",
+ sum = "h1:t/LhUZLVitR1Ow2YOnduCsavhwFUklBMoGVYUCqmCqk=",
+ version = "v0.3.0",
+ build_extra_args = ["-exclude=src"],
+ )