From 171a6d63bc90f3adb5e1933c6270c139fdadf590 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Mon, 1 Apr 2024 16:00:57 -0700 Subject: [PATCH] Fixed the google-protobuf --- grpc.gemspec | 2 +- templates/grpc.gemspec.template | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/grpc.gemspec b/grpc.gemspec index 0dcf12a59e7..68f49d4e223 100644 --- a/grpc.gemspec +++ b/grpc.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |s| s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb ) s.platform = Gem::Platform::RUBY - s.add_dependency 'google-protobuf', '~> 4.26' + s.add_dependency 'google-protobuf', '~> 3.25' s.add_dependency 'googleapis-common-protos-types', '~> 1.0' s.add_development_dependency 'bundler', '>= 1.9' diff --git a/templates/grpc.gemspec.template b/templates/grpc.gemspec.template index 2f5aa335349..de57a2cad41 100644 --- a/templates/grpc.gemspec.template +++ b/templates/grpc.gemspec.template @@ -32,7 +32,10 @@ s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb ) s.platform = Gem::Platform::RUBY - s.add_dependency 'google-protobuf', '~> 4.${settings.protobuf_version.split(".")[1]}' + ## Once protobuf 4.x is working with other dependencies, + ## please replace the following fixed 3.25 version with + ## '~> 4.${settings.protobuf_version.split(".")[1]}' + s.add_dependency 'google-protobuf', '~> 3.25' s.add_dependency 'googleapis-common-protos-types', '~> 1.0' s.add_development_dependency 'bundler', '>= 1.9'