Repository navigation
build: align the Bazel dependency versions with CMake - #1311
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
ddf8c6e to
3d1d020
Compare
|
Thanks for the PR! bazel_dep(name = "protobuf", version = "36.0.bcr.1", repo_name = "com_google_protobuf") |
MODULE.bazel and CMakeLists.txt pinned different versions of the shared dependencies. Take all three from the Bazel Central Registry at the versions CMakeLists.txt already uses, which also removes the two git_override entries: abseil-cpp 20250814.1 (git_override v20260817.0) -> 20260817.0 protobuf 35.0 -> 36.0.bcr.1 googletest 1.16.0 (git_override branch = main) -> 1.18.0.bcr.1 protobuf 36.0.bcr.1 is used rather than 36.0 because 36.0 records the wrong SHA256 for protoc-36.0-osx-aarch_64.zip in tool_integrity.bzl, which breaks the fetch of the prebuilt protoc on macOS arm64. Pinning googletest to a release instead of tracking the main branch also makes the build reproducible.
3d1d020 to
de9e462
Compare
|
Thanks, that was exactly it — updated.
The PR description is updated too, so it no longer describes the checksum failure as an open issue. |
MODULE.bazelandCMakeLists.txtpinned different versions of the shared dependencies. This takes all three from the Bazel Central Registry at the versionsCMakeLists.txtalready uses, which also removes bothgit_overrideentries:20260817.020250814.1+git_overridetag20260817.020260817.0v36.035.036.0.bcr.1v1.18.01.16.0+git_overridebranchmain1.18.0.bcr.1Dropping the overrides means the build no longer clones abseil and googletest at fetch time, and pinning googletest to a release instead of tracking
mainmakes the build reproducible.protobuf is pinned to
36.0.bcr.1rather than36.0because36.0records the wrong SHA256 forprotoc-36.0-osx-aarch_64.zipin itstool_integrity.bzl, which breaks the fetch of the prebuiltprotocon macOS arm64.36.0.bcr.1patches that entry.Verified
macOS arm64, Bazel 9.1.1, with the default toolchain and no extra flags:
bazel build //...(56 targets) andbazel test //...(22 of 22 tests pass).