Skip to content

Commit

Permalink
update protobuf to 27.5
Browse files Browse the repository at this point in the history
  • Loading branch information
oathdruid committed Sep 24, 2024
1 parent 3f881f1 commit 705bb65
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
restore-keys: bazel-disk-arenastring-${{matrix.compiler.name}}-${{matrix.stdlib.name}}-${{matrix.mutable.name}}-
save-always: true
- run: sudo apt install libc++-18-dev libc++abi-18-dev
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '27.3.arenastring'/" MODULE.bazel
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '27.5.arenastring'/" MODULE.bazel
- run: bazel test --compilation_mode=opt --disk_cache=bazel-disk --verbose_failures --test_output=errors --config=asan ${{matrix.compiler.flag}} ${{matrix.stdlib.flag}} ${{matrix.mutable.flag}} test/...

aarch64:
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ bazel_dep(name = 'boost.spirit', version = '1.83.0.bzl.2')

# --registry=https://bcr.bazel.build
single_version_override(module_name = 'abseil-cpp', version = '20240722.0')
single_version_override(module_name = 'protobuf', version = '27.3')
single_version_override(module_name = 'protobuf', version = '27.5')
bazel_dep(name = 'googletest', version = '1.15.2', repo_name = 'com_google_googletest', dev_dependency = True)
bazel_dep(name = 'platforms', version = '0.0.10', dev_dependency = True)
bazel_dep(name = 'rules_cc', version = '0.0.9', dev_dependency = True)
Expand Down
5 changes: 0 additions & 5 deletions registry/modules/protobuf/25.3/source.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# TODO: migrate all dependencies from WORKSPACE to MODULE.bazel
# https://github.com/protocolbuffers/protobuf/issues/14313
module(
name = "protobuf",
version = "25.3",
version = "27.5.arenastring", # Automatically updated on release
compatibility_level = 1,
repo_name = "com_google_protobuf",
)

# LOWER BOUND dependency versions.
Expand All @@ -12,7 +15,7 @@ bazel_dep(name = "abseil-cpp", version = "20230802.0.bcr.1", repo_name = "com_go
bazel_dep(name = "bazel_skylib", version = "1.4.1")
bazel_dep(name = "jsoncpp", version = "1.9.5")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_java", version = "4.0.0")
bazel_dep(name = "rules_java", version = "5.3.5")
bazel_dep(name = "rules_jvm_external", version = "5.1")
bazel_dep(name = "rules_pkg", version = "0.7.0")
bazel_dep(name = "rules_python", version = "0.10.2")
Expand All @@ -22,5 +25,13 @@ bazel_dep(name = "zlib", version = "1.2.11")
# TODO: remove after toolchain types are moved to protobuf
bazel_dep(name = "rules_proto", version = "4.0.0")

bazel_dep(name = "rules_ruby", version = "protobuf-25.3")
bazel_dep(name = "utf8_range", version = "protobuf-25.3")
bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest", dev_dependency = True)
bazel_dep(name = "rules_ruby", dev_dependency = True)
archive_override(
module_name = "rules_ruby",
urls = ["https://github.com/protocolbuffers/rules_ruby/archive/b7f3e9756f3c45527be27bc38840d5a1ba690436.tar.gz"],
strip_prefix = "rules_ruby-b7f3e9756f3c45527be27bc38840d5a1ba690436",
integrity = "sha256-RNo21X/p9slOdF912FLprLnxvZHMXBTxaUDGFmm2bx8=",
patches = ["third_party/rules_ruby.patch"],
patch_strip = 1,
)
Empty file.
9 changes: 9 additions & 0 deletions registry/modules/protobuf/27.5.arenastring/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://github.com/protocolbuffers/protobuf/releases/download/v27.5/protobuf-27.5.zip",
"strip_prefix": "protobuf-27.5",
"integrity": "sha256-6e/2D/bIBiAV3R0gGnVWuWX0q+bLbyjL6vjmiPih3BU=",
"patch_strip": 1,
"patches": {
"arenastring.patch": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU"
}
}

0 comments on commit 705bb65

Please sign in to comment.