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
This commit is contained in:
Nikolay Firov 2024-05-15 13:51:23 +02:00 committed by GitHub
parent 8844cf7b87
commit f995c121e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -60,6 +60,7 @@ use_repo(
non_module_deps, non_module_deps,
"com_github_cncf_xds", "com_github_cncf_xds",
"envoy_api", "envoy_api",
"com_google_protobuf_javalite",
"io_grpc_grpc_proto", "io_grpc_grpc_proto",
) )

View File

@ -117,7 +117,7 @@ def grpc_java_repositories(bzlmod = False):
) )
if not bzlmod and not native.existing_rule("com_google_protobuf"): if not bzlmod and not native.existing_rule("com_google_protobuf"):
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() com_google_protobuf_javalite()
if not bzlmod and not native.existing_rule("com_google_googleapis"): if not bzlmod and not native.existing_rule("com_google_googleapis"):
http_archive( http_archive(