From 5e63c62c4dfd04ee6b06803e5583213b64d2ba8c Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Mon, 18 Nov 2024 20:30:06 +0800 Subject: [PATCH] Upgrade Protobuf to v27.3 for building with bzlmod After using offical boost 1.83.0[1], rules_cc@0.0.13 are required, which, in turn, requires Protobuf v27.0. Protobuf v27.0 is not compatible with GCC less than 13[2]. [1] https://github.com/apache/brpc/pull/2789 [2] https://github.com/protocolbuffers/protobuf/issues/16868 --- MODULE.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index d2b679fef7..e53146aefb 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -8,7 +8,7 @@ module( bazel_dep(name = 'abseil-cpp', version = '20210324.2', repo_name = 'com_google_absl') bazel_dep(name = 'bazel_skylib', version = '1.0.3') bazel_dep(name = 'boringssl', version = '0.0.0-20211025-d4f1ab9') -bazel_dep(name = 'protobuf', version = '3.19.6', repo_name = 'com_google_protobuf') +bazel_dep(name = 'protobuf', version = '27.3', repo_name = 'com_google_protobuf') bazel_dep(name = 'gflags', version = '2.2.2', repo_name = 'com_github_gflags_gflags') bazel_dep(name = 'glog', version = '0.5.0', repo_name = 'com_github_google_glog') bazel_dep(name = 'platforms', version = '0.0.4')