Skip to content

Commit 640f743

Browse files
Google APIscopybara-github
authored andcommitted
chore: upgrading protobuf to 23.2 for code generation
PiperOrigin-RevId: 537035741
1 parent f9204d8 commit 640f743

1 file changed

Lines changed: 13 additions & 15 deletions

File tree

WORKSPACE

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,23 @@ http_archive(
134134
urls = ["https://github.com/grpc/grpc/archive/v%s.zip" % _grpc_version],
135135
)
136136

137+
# Explicitly declaring Protobuf version, while Protobuf dependency is already
138+
# instantiated in grpc_deps().
139+
http_archive(
140+
name = "com_google_protobuf",
141+
sha256 = "0b0395d34e000f1229679e10d984ed7913078f3dd7f26cf0476467f5e65716f4",
142+
strip_prefix = "protobuf-23.2",
143+
urls = ["https://github.com/protocolbuffers/protobuf/archive/v23.2.tar.gz"],
144+
)
145+
137146
load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
138147

139-
# This declares com_google_protobuf repository
140148
grpc_deps()
141149

150+
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps", "PROTOBUF_MAVEN_ARTIFACTS")
151+
# This is actually already done within grpc_deps but calling this for Bazel convention.
152+
protobuf_deps()
153+
142154
# gRPC enforces a specific version of Go toolchain which conflicts with our build.
143155
# All the relevant parts of grpc_extra_deps() are imported in this WORKSPACE file
144156
# explicitly, that is why we do not call grpc_extra_deps() here and call
@@ -154,20 +166,6 @@ apple_support_dependencies()
154166

155167
# End of C++ section
156168

157-
# Explicitly declaring Protobuf version, while Protobuf dependency is already
158-
# instantiated in grpc_deps().
159-
http_archive(
160-
name = "com_google_protobuf",
161-
sha256 = "0b0395d34e000f1229679e10d984ed7913078f3dd7f26cf0476467f5e65716f4",
162-
strip_prefix = "protobuf-23.2",
163-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v23.2.tar.gz"],
164-
)
165-
166-
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps", "PROTOBUF_MAVEN_ARTIFACTS")
167-
168-
# This is actually already done within grpc_deps but calling this for Bazel convention.
169-
protobuf_deps()
170-
171169
http_archive(
172170
name = "rules_proto",
173171
sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",

0 commit comments

Comments
 (0)