Skip to content

Commit 24d0afb

Browse files
committed
build: Patch protobuf bazel build rule to export ProtoInfo for grpc 1.80.0
1 parent 47ba387 commit 24d0afb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk-platform-java/gax-java/repositories.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ def com_google_api_gax_java_repositories():
5353
name = "com_google_protobuf",
5454
urls = ["https://github.com/protocolbuffers/protobuf/archive/%s.zip" % _protobuf_version_in_link],
5555
strip_prefix = "protobuf-%s" % _protobuf_version,
56+
patch_cmds = [
57+
"mkdir -p bazel/common",
58+
"touch bazel/common/BUILD",
59+
"echo 'load(\"@@rules_proto//proto:defs.bzl\", _ProtoInfo = \"ProtoInfo\")' > bazel/common/proto_info.bzl",
60+
"echo 'ProtoInfo = _ProtoInfo' >> bazel/common/proto_info.bzl",
61+
],
5662
)
5763

5864
_grpc_version = PROPERTIES["version.io_grpc"]

0 commit comments

Comments
 (0)