google / google/flatbuffers

Transitive dependency on grpc-java causes bzlmod resolution failure

Open
#9,064 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

Using `flatbuffers@25.12.19` with `bzlmod` fails during `bazel mod graph` with:

```
ERROR: module extension @@grpc+//bazel:grpc_deps.bzl%grpc_repo_deps_ext does not generate repository "com_envoyproxy_protoc_gen_validate", yet it is imported as
"com_envoyproxy_protoc_gen_validate" in the usage at https://bcr.bazel.build/modules/grpc-java/1.66.0/MODULE.bazel:68:35
ERROR: Error loading '@@rules_foreign_cc+//foreign_cc:extensions.bzl' for module extensions, requested by
https://bcr.bazel.build/modules/rules_foreign_cc/0.10.1/MODULE.bazel:14:22
```

The dependency chain is
```
flatbuffers@25.12.19 -> grpc@1.70.1 -> googleapis@0.0.0-20240819-fe8ba054a -> grpc-java@1.66.0
```

I created an example project with just the flatbuffers dependency at https://github.com/MaciejKaszynski/fbs_problem/blob/3032f8accd948241d79ade1070a1f00e4111bac3/MODULE.bazel

You can recreate this error by cloning the repository and running `bazel mod graph`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.