Skip to content

Commit

Permalink
Include com_google_protobuf_javalite to MODULE.bazel to fix bzlmod qu…
Browse files Browse the repository at this point in the history
…erying 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
  • Loading branch information
firov authored May 15, 2024
1 parent 8844cf7 commit f995c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ use_repo(
non_module_deps,
"com_github_cncf_xds",
"envoy_api",
"com_google_protobuf_javalite",
"io_grpc_grpc_proto",
)

Expand Down
2 changes: 1 addition & 1 deletion repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def grpc_java_repositories(bzlmod = False):
)
if not bzlmod and not native.existing_rule("com_google_protobuf"):
com_google_protobuf()
if not bzlmod and not native.existing_rule("com_google_protobuf_javalite"):
if not native.existing_rule("com_google_protobuf_javalite"):
com_google_protobuf_javalite()
if not bzlmod and not native.existing_rule("com_google_googleapis"):
http_archive(
Expand Down

0 comments on commit f995c12

Please sign in to comment.