Skip to content

Commit f995c12

Browse files
authoredMay 15, 2024··
Include com_google_protobuf_javalite to MODULE.bazel to fix bzlmod querying graph in end-user repo (#11147)
* Fix 3d party dependency use_repo * remove protobuf as it is already added as module dep * fix * fix * fix * return com_google_protobuf_javalite archive and use it in MODULE.bazel
1 parent 8844cf7 commit f995c12

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎MODULE.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ use_repo(
6060
non_module_deps,
6161
"com_github_cncf_xds",
6262
"envoy_api",
63+
"com_google_protobuf_javalite",
6364
"io_grpc_grpc_proto",
6465
)
6566

‎repositories.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def grpc_java_repositories(bzlmod = False):
117117
)
118118
if not bzlmod and not native.existing_rule("com_google_protobuf"):
119119
com_google_protobuf()
120-
if not bzlmod and not native.existing_rule("com_google_protobuf_javalite"):
120+
if not native.existing_rule("com_google_protobuf_javalite"):
121121
com_google_protobuf_javalite()
122122
if not bzlmod and not native.existing_rule("com_google_googleapis"):
123123
http_archive(

0 commit comments

Comments
 (0)
Please sign in to comment.