Skip to content

Commit

Permalink
Fix Windows bazel builds by downgrading abseil
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yukawa committed Feb 14, 2025
1 parent 4c86252 commit a7f4937
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions src/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,43 @@
# To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc.
module(name = "mozc")

# absl-cpp: 2025-02-04
# https://github.com/abseil/abseil-cpp
# abseil-cpp with patches for Bazel 8.0.0 is used instead of the local Abseil in third_party/.
# Otherwise, `bazel fetch` will fail with the error: "cc_configure_extension no longer available".
# References
# * https://github.com/bazelbuild/bazel/issues/24426
# * https://github.com/bazelbuild/bazel-central-registry/pull/3320
# Also we cannot switch to 20250127.0 until the protobuf team fixes the following issue.
# * https://github.com/protocolbuffers/protobuf/issues/20331
bazel_dep(
name = "abseil-cpp",
version = "20250127.0",
version = "20240722.0.bcr.2",
repo_name = "com_google_absl",
)

# protobuf: 30.0-rc1 2025-02-05
# This is also workaround for the above issue bazel/issues/24426.
# This bazel_dep should be removed after the issue is fixed.
bazel_dep(
name = "re2",
version = "2024-07-02.bcr.1",
)

# protobuf: 29.3 2025-01-09
# https://github.com/protocolbuffers/protobuf
# Use 30.0-rc1 since 29.x is not buildable with Abseil 20250127.0.
# We cannot switch to 30.x until the protobuf team fixes the following issue.
# * https://github.com/protocolbuffers/protobuf/issues/20331
bazel_dep(
name = "protobuf",
version = "30.0-rc1",
version = "29.3",
repo_name = "com_google_protobuf",
)

# googletest: 1.16.0 2025-02-08
# googletest: 1.15.2 2024-07-31
# https://github.com/google/googletest
# We cannot switch to 1.16.0 until the protobuf team fixes the following issue.
# * https://github.com/protocolbuffers/protobuf/issues/20331
bazel_dep(
name = "googletest",
version = "1.16.0",
version = "1.15.2",
repo_name = "com_google_googletest",
)

Expand Down

0 comments on commit a7f4937

Please sign in to comment.