Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: grpc-java 1.62.2 causes "no repository visible as '@com_google_protobuf_javalite'" error #2538

Open
gonzojive opened this issue Aug 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gonzojive
Copy link
Contributor

gonzojive commented Aug 4, 2024

What happened?

grpc-java 1.62.2 causes bazel mod graph to print an error instead of show the dependency graph.

Version

Development (host) and target OS/architectures:
Ubuntu LTS

Output of bazel --version:

$ bazel version                                                                                                                                                                  
Bazelisk version: development                                                                                                                                                                                      
Build label: 7.2.1                                                                                                                                                                                                 
Build target: @@//src/main/java/com/google/devtools/build/lib/bazel:BazelServer                                                                                                                                    
Build time: Tue Jun 25 15:53:05 2024 (1719330785)                                                                                                                                                                  
Build timestamp: 1719330785                                                                                                                                                                                        
Build timestamp as int: 1719330785

How to reproduce

MODULE.bazel:


module(
    name = "example_thing",
    version = "0.0.0",
    compatibility_level = 1,
    repo_name = "example",
)

# Needed to resolve https://github.com/grpc/grpc-java/issues/11275.
bazel_dep(name = "grpc-java", version = "1.62.2")

.bazelrc

common --enable_bzlmod
$ bazel mod graph

ERROR: 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")?. Type 'bazel help mod' for syntax and help.

Any other information?

No response

@gonzojive gonzojive added the bug Something isn't working label Aug 4, 2024
@gonzojive
Copy link
Contributor Author

Related issue in grpc-java repo: grpc/grpc-java#11275

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant