Skip to content

Commit 71971b1

Browse files
committed
Upgrade to protobuf v25.6
Updates the `protobuf` version to one that's still compatible with Bazel 6.5.0 and 7.5.0 without updating `scalapb`. Broken out from bazel-contrib#1710, and part of bazel-contrib#1482 and bazel-contrib#1652. Like bazel-contrib#1711, updates `.bazelversion` files to 7.5.0 and the CI builds in `.bazelci/presubmit.yml` to use Bazel 7.5.0. Unlike bazel-contrib#1711, contains only these updates: - `abseil-cpp`: 20220623.1 => 20250127.0 - `protobuf`: v21.7 => v25.6 This change aims make bazel-contrib#1710 smaller and more focused, and should ultimately make that pull request smaller and/or easier to review. Specifically, this is an attempt to see whether MSVC will build successfully with `protobuf` v25.6. If it doesn't, I will update this change to include the protocol compiler toolchainization changes from bazel-contrib#1710.
1 parent eadc090 commit 71971b1

File tree

17 files changed

+28
-29
lines changed

17 files changed

+28
-29
lines changed

.bazelci/presubmit.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ tasks:
5353
- "set PATH=/usr/bin;%PATH%" #Make sure bash uses msys commands over windows commands. (i.e. find).
5454
- "bash -lc \"pacman --noconfirm --needed -S libxml2\"" #tests require xmllint
5555
- "bash test_rules_scala.sh"
56-
test_coverage_linux_6_5_0:
56+
test_coverage_linux_7_5_0:
5757
name: "./test_coverage"
5858
platform: ubuntu2004
59-
bazel: 6.5.0
59+
bazel: 7.5.0
6060
shell_commands:
6161
- "./test_coverage.sh"
62-
test_coverage_macos_6.5.0:
62+
test_coverage_macos_7.5.0:
6363
name: "./test_coverage"
6464
platform: macos
65-
bazel: 6.5.0
65+
bazel: 7.5.0
6666
shell_commands:
6767
- "./test_coverage.sh"
6868
test_reproducibility_linux:
@@ -93,13 +93,13 @@ tasks:
9393
examples_linux:
9494
name: "./test_examples"
9595
platform: ubuntu2004
96-
bazel: 6.5.0
96+
bazel: 7.5.0
9797
shell_commands:
9898
- "./test_examples.sh"
9999
cross_build_linux:
100100
name: "./test_cross_build"
101101
platform: ubuntu2004
102-
bazel: 6.5.0
102+
bazel: 7.5.0
103103
shell_commands:
104104
- "./test_cross_build.sh"
105105
lint_linux:

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

examples/crossbuild/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

examples/scala3/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

examples/semanticdb/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

scala/deps.bzl

+7-8
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ def rules_scala_dependencies():
2323
strip_prefix = "rules_cc-0.0.9",
2424
)
2525

26-
# Needed by protobuf-21.7 and Bazel 6.5.0, as later versions require C++14.
2726
maybe(
2827
http_archive,
29-
name = "com_google_absl",
30-
sha256 = "91ac87d30cc6d79f9ab974c51874a704de9c2647c40f6932597329a282217ba8",
31-
strip_prefix = "abseil-cpp-20220623.1",
32-
url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.tar.gz",
28+
name = "abseil-cpp",
29+
sha256 = "16242f394245627e508ec6bb296b433c90f8d914f73b9c026fddb905e27276e8",
30+
strip_prefix = "abseil-cpp-20250127.0",
31+
url = "https://github.com/abseil/abseil-cpp/archive/refs/tags/20250127.0.tar.gz",
3332
)
3433

3534
maybe(
@@ -44,9 +43,9 @@ def rules_scala_dependencies():
4443
maybe(
4544
http_archive,
4645
name = "com_google_protobuf",
47-
sha256 = "75be42bd736f4df6d702a0e4e4d30de9ee40eac024c4b845d17ae4cc831fe4ae",
48-
strip_prefix = "protobuf-21.7",
49-
url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.7.tar.gz",
46+
sha256 = "ecfeb9f673e63321b4871c1cee6b5adeb0ef711d08a0c5bb1945271767df65bf",
47+
strip_prefix = "protobuf-25.6",
48+
url = "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v25.6.tar.gz",
5049
)
5150

5251
maybe(
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

test_cross_build/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

third_party/test/proto/.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.0
1+
7.5.0

0 commit comments

Comments
 (0)