Skip to content

Commit

Permalink
refactor: switch to pre-built protoc binaries (#1520)
Browse files Browse the repository at this point in the history
rules_proto has been updating the protoc version regularly and we can
rely on it.

Signed-off-by: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com>
  • Loading branch information
f0rmiga authored Feb 28, 2023
1 parent 43bed1c commit 2109b54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ go_register_toolchains(version = "1.19.3")

gazelle_dependencies()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

rules_proto_dependencies()

rules_proto_toolchains()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()
13 changes: 3 additions & 10 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,13 @@ def talkie_dependencies():
sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7",
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz"],
)
maybe(
http_archive,
name = "com_google_protobuf",
sha256 = "990e47a163b4057f98b899eca591981b5b735872b58f59b9ead9cecabbb21a2a",
strip_prefix = "protobuf-21.4",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v21.4.tar.gz"],
)
maybe(
http_archive,
name = "rules_proto",
sha256 = "66bfdf8782796239d3875d37e7de19b1d94301e8972b3cbd2446b332429b4df1",
strip_prefix = "rules_proto-4.0.0",
sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd",
strip_prefix = "rules_proto-5.3.0-21.7",
urls = [
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.tar.gz",
"https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz",
],
)
maybe(
Expand Down
8 changes: 4 additions & 4 deletions examples/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")

llvm_register_toolchains()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")

rules_proto_dependencies()

rules_proto_toolchains()

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

protobuf_deps()

load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")

rules_pkg_dependencies()
Expand Down

0 comments on commit 2109b54

Please sign in to comment.