Skip to content

Commit 6168767

Browse files
committed
build: Patch protobuf bazel build rule to export java_proto_library for grpc 1.80.0
1 parent 24d0afb commit 6168767

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,10 @@ def com_google_api_gax_java_repositories():
5656
patch_cmds = [
5757
"mkdir -p bazel/common",
5858
"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",
59+
"touch bazel/BUILD",
60+
"cat <<'EOF' > bazel/common/proto_info.bzl\nload(\"@rules_proto//proto:defs.bzl\", _ProtoInfo = \"ProtoInfo\")\nProtoInfo = _ProtoInfo\nEOF",
61+
"cat <<'EOF' > bazel/proto_library.bzl\ndef proto_library(**kwargs):\n native.proto_library(**kwargs)\nEOF",
62+
"cat <<'EOF' > bazel/java_proto_library.bzl\ndef java_proto_library(**kwargs):\n native.java_proto_library(**kwargs)\nEOF",
6163
],
6264
)
6365

0 commit comments

Comments
 (0)