Skip to content

Commit

Permalink
Update dependencies of abseil-cpp, protobuf and googletest in MODULE.…
Browse files Browse the repository at this point in the history
…bazel

* Use MODULE.bazel of Bazel instead of submodules of git.
* abseil: 2024722 → 20250127
* protobuf: 29.1 → 29.3
* googletest: 1.15.2 → 1.16.0

#codehealth

PiperOrigin-RevId: 725116251
  • Loading branch information
hiroyuki-komatsu committed Feb 10, 2025
1 parent 7f686f1 commit 813eff7
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions src/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,29 @@
# To use Bzlmod, you need to specify --enable_bzlmod to the Bazel command or modify .bazelrc.
module(name = "mozc")

# 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
# absl-cpp: 2025-02-04
# https://github.com/abseil/abseil-cpp
bazel_dep(
name = "abseil-cpp",
version = "20240722.0.bcr.2",
version = "20250127.0",
repo_name = "com_google_absl",
)

# 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
bazel_dep(
name = "protobuf",
version = "29.3",
repo_name = "com_google_protobuf",
)
local_path_override(
module_name = "protobuf",
path = "third_party/protobuf",
)

# googletest: 1.16.0 2025-02-08
# https://github.com/google/googletest
bazel_dep(
name = "googletest",
version = "1.16.0",
repo_name = "com_google_googletest",
)
local_path_override(
module_name = "googletest",
path = "third_party/gtest",
)

# platforms: 0.0.10 2024-04-26
# https://github.com/bazelbuild/platforms/
Expand Down

0 comments on commit 813eff7

Please sign in to comment.