Use precompiled protoc
Pull in protoc the right way, so that we can use a released binary
instead of compiling protoc ourselves on every branch switch.
@@ -26,6 +26,22 @@ http_archive(
)
# Additional bazel rules
+load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
+
+http_archive(
+ name = "rules_proto",
+ sha256 = "bc12122a5ae4b517fa423ea03a8d82ea6352d5127ea48cb54bc324e8ab78493c",
+ strip_prefix = "rules_proto-af6481970a34554c6942d993e194a9aed7987780",
+ urls = [
+ "https://github.com/bazelbuild/rules_proto/archive/af6481970a34554c6942d993e194a9aed7987780.tar.gz",
+ ],
+)
+
+load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
+
+rules_proto_dependencies()
+
+rules_proto_toolchains()
http_archive(
name = "io_bazel_rules_go",
@@ -47,17 +63,6 @@ http_archive(
],
)
-http_archive(
- name = "com_google_protobuf",
- sha256 = "cd218dc003eacc167e51e3ce856f6c2e607857225ef86b938d95650fcbb2f8e4",
- strip_prefix = "protobuf-6d4e7fd7966c989e38024a8ea693db83758944f1",
- # version 3.10.0
- urls = [
- "https://github.com/google/protobuf/archive/6d4e7fd7966c989e38024a8ea693db83758944f1.zip",
- "https://storage.googleapis.com/builddeps/cd218dc003eacc167e51e3ce856f6c2e607857225ef86b938d95650fcbb2f8e4",
- ],
-)
-
http_archive(
name = "io_bazel_rules_docker",
sha256 = "95d39fd84ff4474babaf190450ee034d958202043e366b9fc38f438c9e6c3334",
@@ -194,10 +199,6 @@ load("@com_github_ash2k_bazel_tools//goimports:deps.bzl", "goimports_dependencie
goimports_dependencies()
-load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
-
-protobuf_deps()
-
load(
"@bazel_gazelle//:deps.bzl",
"gazelle_dependencies",
