Skip to content

Commit 634d517

Browse files
committed
Fix Windows bazel builds by downgrading abseil
Due to the build failure on Windows that happens when using protobuf with abseil 20250127.0 [1], we cannot yet update abseil. This commit updates the bzlmod depencencies as follows. abseil: 20240722.0.bcr.2 re2: 2024-07-02.bcr.1 protobuf: 29.3 googletest: 1.15.2 [1]: protocolbuffers/protobuf#20331
1 parent 4c86252 commit 634d517

File tree

1 file changed

+25
-8
lines changed

1 file changed

+25
-8
lines changed

src/MODULE.bazel

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,45 @@
22
# To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc.
33
module(name = "mozc")
44

5-
# absl-cpp: 2025-02-04
6-
# https://github.com/abseil/abseil-cpp
5+
# abseil-cpp with patches for Bazel 8.0.0 is used instead of the local Abseil in third_party/.
6+
# Otherwise, `bazel fetch` will fail with the error: "cc_configure_extension no longer available".
7+
# References
8+
# * https://github.com/bazelbuild/bazel/issues/24426
9+
# * https://github.com/bazelbuild/bazel-central-registry/pull/3320
10+
# Also we cannot switch to 20250127.0 until the protobuf team fixes the following issue.
11+
# * https://github.com/protocolbuffers/protobuf/issues/20331
712
bazel_dep(
813
name = "abseil-cpp",
9-
version = "20250127.0",
14+
version = "20240722.0.bcr.2",
15+
# TODO: Remove this max_compatibility_level when the above protobuf issue is addressed.
16+
max_compatibility_level = 1,
1017
repo_name = "com_google_absl",
1118
)
1219

13-
# protobuf: 30.0-rc1 2025-02-05
20+
# This is also workaround for the above issue bazel/issues/24426.
21+
# This bazel_dep should be removed after the issue is fixed.
22+
bazel_dep(
23+
name = "re2",
24+
version = "2024-07-02.bcr.1",
25+
)
26+
27+
# protobuf: 29.3 2025-01-09
1428
# https://github.com/protocolbuffers/protobuf
15-
# Use 30.0-rc1 since 29.x is not buildable with Abseil 20250127.0.
29+
# We cannot switch to 30.x until the protobuf team fixes the following issue.
30+
# * https://github.com/protocolbuffers/protobuf/issues/20331
1631
bazel_dep(
1732
name = "protobuf",
18-
version = "30.0-rc1",
33+
version = "29.3",
1934
repo_name = "com_google_protobuf",
2035
)
2136

22-
# googletest: 1.16.0 2025-02-08
37+
# googletest: 1.15.2 2024-07-31
2338
# https://github.com/google/googletest
39+
# We cannot switch to 1.16.0 until the protobuf team fixes the following issue.
40+
# * https://github.com/protocolbuffers/protobuf/issues/20331
2441
bazel_dep(
2542
name = "googletest",
26-
version = "1.16.0",
43+
version = "1.15.2",
2744
repo_name = "com_google_googletest",
2845
)
2946

0 commit comments

Comments
 (0)