You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a bazel project with a MODULE.bazel depending on grpc-java 1.62.2 that was building fine on Debian. When I invoked bazel build at the command line, I saw that Bazel v7.2.0 was automatically downloaded; whereupon,
ERROR: ... build aborted: in tag at https://bcr.bazel.build/modules/grpc-java/1.62.2/MODULE.bazel:89:15:
no repository visible as '@com_google_protobuf_javalite' to the repository '@@grpc-java~', but referenced
by label '@com_google_protobuf_javalite//:protobuf_javalite' in attribute 'target' of tag 'override'.
Is the module 'grpc-java' missing a bazel_dep or use_repo(..., "com_google_protobuf_javalite")?
Notice com_google_protobuf_javalite versus com_google_protobuf//:protobuf_javalite. Looking in repositories.bzl, there are both com_google_protobuf and com_google_protobuf_javalite pointing at the same archive (protobuf-25.1).
In the grpc_java_repositories (module extension) there's some logic:
if not bzlmod and not native.existing_rule("com_google_protobuf"):
com_google_protobuf()
if not native.existing_rule("com_google_protobuf_javalite"):
com_google_protobuf_javalite()
I tried the obvious things like bazel clean but got the same error.
The text was updated successfully, but these errors were encountered:
Closing the loop, I see that grpc-java 1.64.0 was published to Bazel Central this morning. I updated the module dependency in my project and the build now succeeds.
I have a bazel project with a MODULE.bazel depending on grpc-java 1.62.2 that was building fine on Debian. When I invoked bazel build at the command line, I saw that Bazel v7.2.0 was automatically downloaded; whereupon,
Looking at head, in MODULE.bazel:
Notice
com_google_protobuf_javalite
versuscom_google_protobuf//:protobuf_javalite
. Looking in repositories.bzl, there are both com_google_protobuf and com_google_protobuf_javalite pointing at the same archive (protobuf-25.1).In the grpc_java_repositories (module extension) there's some logic:
I tried the obvious things like bazel clean but got the same error.
The text was updated successfully, but these errors were encountered: