Skip to content

Transitive dependency on grpc-java causes bzlmod resolution failure #9064

@MaciejKaszynski

Description

@MaciejKaszynski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions