From d6eb27a42dc1fc13fbd439b13ecae50714ecfa5e Mon Sep 17 00:00:00 2001 From: Jan Schlosser Date: Tue, 5 May 2026 14:57:06 +0200 Subject: [PATCH] bazel: Solve grpc-java problem flatbuffers depends on an older grpc-java version, which breaks the `bazel mod deps` command. The easiest way is to depend on the version with the fix, eventhough we have no other direct dependency. This way, the bigger version gets selected. In addition, we ensure that this will not break again. --- .github/workflows/tests.yml | 3 +++ MODULE.bazel | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1db9964d..7f33e06a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,3 +54,6 @@ jobs: - name: Run Validation Tooling tests run: | bazel test //validation/... + - name: Ensure correct dependency resolution + run: | + bazel mod deps --lockfile_mode=update diff --git a/MODULE.bazel b/MODULE.bazel index 951555ca..e900e735 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -34,6 +34,11 @@ bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2") bazel_dep(name = "flatbuffers", version = "25.9.23") +# flatbuffers depends on this transitively, but older grpc-java version +# The main problem is that there the command `bazel mod deps` is broken, which +# we want and need to support for dependant modules +bazel_dep(name = "grpc-java", version = "1.75.0.bcr.1") + ############################################################################### # CC Toolchain ###############################################################################