Skip to content

Commit

Permalink
Update protobuf to v21.6 on 1.49.x (#31028)
Browse files Browse the repository at this point in the history
* Update third_party/protobuf

* run tools/distrib/python/make_grpcio_tools.py

* update build_handwritten.yaml

* regenerate projects
  • Loading branch information
gnossen committed Sep 19, 2022
1 parent 8f8edfd commit ceaa9b3
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions bazel/grpc_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ def grpc_deps():
if "com_google_protobuf" not in native.existing_rules():
http_archive(
name = "com_google_protobuf",
sha256 = "6b6c30c00eacbc888414916c9784fd2159b5f4a7b7200d947a19dfdf70eef6ff",
strip_prefix = "protobuf-ab840345966d0fa8e7100d771c92a73bfbadd25c",
sha256 = "63c5539a8506dc6bccd352a857cea106e0a389ce047a3ff0a78fe3f8fede410d",
strip_prefix = "protobuf-24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb",
urls = [
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/protobuf/archive/ab840345966d0fa8e7100d771c92a73bfbadd25c.tar.gz",
"https://github.com/protocolbuffers/protobuf/archive/ab840345966d0fa8e7100d771c92a73bfbadd25c.tar.gz",
"https://storage.googleapis.com/grpc-bazel-mirror/github.com/protocolbuffers/protobuf/archive/24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb.tar.gz",
"https://github.com/protocolbuffers/protobuf/archive/24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb.tar.gz",
],
patches = ["@com_github_grpc_grpc//third_party:protobuf.patch"],
patch_args = ["-p1"],
Expand Down
2 changes: 1 addition & 1 deletion build_handwritten.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ settings:
core_version: 27.0.0
csharp_major_version: 2
g_stands_for: gamma
protobuf_version: 3.21.5
protobuf_version: 3.21.6
version: 1.49.0
targets:
- name: gen_hpack_tables
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<Project>
<PropertyGroup>
<GrpcCsharpVersion>2.49.0</GrpcCsharpVersion>
<GoogleProtobufVersion>3.21.5</GoogleProtobufVersion>
<GoogleProtobufVersion>3.21.6</GoogleProtobufVersion>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion src/objective-c/!ProtoCompiler-gRPCCppPlugin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Pod::Spec.new do |s|
s.preserve_paths = plugin

# Restrict the protoc version to the one supported by this plugin.
s.dependency '!ProtoCompiler', '3.21.5'
s.dependency '!ProtoCompiler', '3.21.6'
# For the Protobuf dependency not to complain:
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/!ProtoCompiler-gRPCPlugin.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Pod::Spec.new do |s|
s.preserve_paths = plugin

# Restrict the protoc version to the one supported by this plugin.
s.dependency '!ProtoCompiler', '3.21.5'
s.dependency '!ProtoCompiler', '3.21.6'
# For the Protobuf dependency not to complain:
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
Expand Down
2 changes: 1 addition & 1 deletion src/objective-c/!ProtoCompiler.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Pod::Spec.new do |s|
# exclamation mark ensures that other "regular" pods will be able to find it as it'll be installed
# before them.
s.name = '!ProtoCompiler'
v = '3.21.5'
v = '3.21.6'
s.version = v
s.summary = 'The Protobuf Compiler (protoc) generates Objective-C files from .proto files'
s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion third_party/protobuf
Submodule protobuf updated 50 files
+1 −1 Protobuf-C++.podspec
+1 −1 Protobuf.podspec
+2 −2 benchmarks/Makefile.am
+1 −1 configure.ac
+1 −1 csharp/Google.Protobuf.Tools.nuspec
+1 −1 csharp/src/Google.Protobuf/Google.Protobuf.csproj
+3 −3 java/README.md
+1 −1 java/bom/pom.xml
+1 −1 java/core/pom.xml
+1 −1 java/kotlin-lite/pom.xml
+1 −1 java/kotlin/pom.xml
+1 −1 java/lite.md
+1 −1 java/lite/pom.xml
+1 −1 java/pom.xml
+1 −1 java/util/pom.xml
+24 −15 kokoro/macos/prepare_build_macos_rc
+3 −0 kokoro/macos/ruby31/build.sh
+3 −1 kokoro/release/python/macos/build_artifacts.sh
+0 −1 kokoro/release/python/macos/config.sh
+0 −3 kokoro/release/ruby/macos/build_artifacts.sh
+0 −1 kokoro/release/ruby/macos/ruby/ruby_build.sh
+4 −0 kokoro/release/ruby/macos/ruby/ruby_build_environment.sh
+19 −4 php/ext/google/protobuf/package.xml
+1 −1 php/ext/google/protobuf/protobuf.h
+3 −3 protobuf_version.bzl
+1 −1 protoc-artifacts/pom.xml
+1 −1 python/google/protobuf/__init__.py
+1 −1 ruby/google-protobuf.gemspec
+2 −2 ruby/pom.xml
+1 −1 src/Makefile.am
+1 −1 src/google/protobuf/any.pb.h
+1 −1 src/google/protobuf/api.pb.h
+1 −1 src/google/protobuf/compiler/plugin.pb.h
+1 −1 src/google/protobuf/descriptor.pb.h
+1 −1 src/google/protobuf/duration.pb.h
+1 −1 src/google/protobuf/empty.pb.h
+18 −9 src/google/protobuf/extension_set_inl.h
+1 −1 src/google/protobuf/field_mask.pb.h
+1 −1 src/google/protobuf/port_def.inc
+1 −1 src/google/protobuf/source_context.pb.h
+1 −1 src/google/protobuf/struct.pb.h
+1 −1 src/google/protobuf/stubs/common.h
+1 −1 src/google/protobuf/timestamp.pb.h
+1 −1 src/google/protobuf/type.pb.h
+18 −8 src/google/protobuf/wire_format.cc
+18 −9 src/google/protobuf/wire_format_lite.h
+95 −9 src/google/protobuf/wire_format_unittest.inc
+1 −1 src/google/protobuf/wrappers.pb.h
+0 −11 tests.sh
+10 −10 version.json
2 changes: 1 addition & 1 deletion third_party/protobuf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ index 97ac28028..8b7585d9d 100644
@@ -31,3 +31,9 @@
# Copyright 2007 Google Inc. All Rights Reserved.

__version__ = '4.21.5'
__version__ = '4.21.6'
+
+if __name__ != '__main__':
+ try:
Expand Down
2 changes: 1 addition & 1 deletion tools/distrib/python/grpc_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# AUTO-GENERATED FROM `$REPO_ROOT/templates/tools/distrib/python/grpcio_tools/grpc_version.py.template`!!!

VERSION = '1.49.0'
PROTOBUF_VERSION = '3.21.5'
PROTOBUF_VERSION = '3.21.6'
2 changes: 1 addition & 1 deletion tools/distrib/python/grpcio_tools/grpc_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
# AUTO-GENERATED FROM `$REPO_ROOT/templates/tools/distrib/python/grpcio_tools/grpc_version.py.template`!!!

VERSION = '1.49.0'
PROTOBUF_VERSION = '3.21.5'
PROTOBUF_VERSION = '3.21.6'
2 changes: 1 addition & 1 deletion tools/distrib/python/grpcio_tools/protoc_lib_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
CC_INCLUDE='third_party/protobuf/src'
PROTO_INCLUDE='third_party/protobuf/src'

PROTOBUF_SUBMODULE_VERSION="ab840345966d0fa8e7100d771c92a73bfbadd25c"
PROTOBUF_SUBMODULE_VERSION="24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb"
2 changes: 1 addition & 1 deletion tools/run_tests/sanity/check_submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ third_party/googletest 0e402173c97aea7a00749e825b194bfede4f2e45
third_party/libuv 02a9e1be252b623ee032a3137c0b0c94afbe6809
third_party/opencensus-proto 4aa53e15cbf1a47bc9087e6cfdca214c1eea4e89
third_party/opentelemetry 60fa8754d890b5c55949a8c68dcfd7ab5c2395df
third_party/protobuf ab840345966d0fa8e7100d771c92a73bfbadd25c
third_party/protobuf 24487dd1045c7f3d64a21f38a3f0c06cc4cf2edb
third_party/re2 8e08f47b11b413302749c0d8b17a1c94777495d5
third_party/xds cb28da3451f158a947dfc45090fe92b07b243bc1
third_party/zlib 21767c654d31d2dccdde4330529775c6c5fd5389
Expand Down

0 comments on commit ceaa9b3

Please sign in to comment.