Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lock gRPC version for older Rubies #1045

Merged
merged 1 commit into from
May 21, 2020
Merged

Lock gRPC version for older Rubies #1045

merged 1 commit into from
May 21, 2020

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented May 20, 2020

Since google-protobuf 3.12.0 has been released, our older versions of Ruby have been trying to install it, but this new version only support Ruby => 2.5.

Bundler/rubygems should know this and not try to install an compatible version, but that doesn't seem to be the case. I found a few older GH issues about this issue, but nothing conclusive.

I believe the older version of bundler+rubygems are likely part of the problem, but it's ok to use those old versions when testing older Rubies.

This PR locks gRPC and it's dependency, google-protobuf, to the latest supported version for Ruby 2.2, 2.3 and 2.4. Ruby >= 2.5 continue to be supported by the latest release as usual.

@marcotc marcotc added the dev/ci Involves CircleCI, GitHub Actions, or GitLab label May 20, 2020
@marcotc marcotc requested a review from a team May 20, 2020 20:27
@marcotc marcotc self-assigned this May 20, 2020
@@ -501,6 +501,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
gem 'grape'
gem 'graphql'
gem 'grpc'
gem 'google-protobuf', '~> 3.11.0' # Last version to support Ruby < 2.5
Copy link
Member Author

@marcotc marcotc May 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could lock grpc to a very old version, but instead we lock it's transitive dependency, google-protobuf, to the latest supported version, which is closer to what users using these older versions of Ruby are likely doing.
This allows for newer grpc installations, backed by an older, but compatible, google-protobuf.

Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify, locking google-protobuf is because of grpc right? I just ask because we were simultaneously adding google-protobuf to our dependency list on another branch.

@marcotc
Copy link
Member Author

marcotc commented May 21, 2020

@delner, you are correct, it's only because of grpc.

@brettlangdon brettlangdon merged commit a8b751e into master May 21, 2020
@marcotc marcotc added this to the 0.36.0 milestone May 27, 2020
@marcotc marcotc deleted the ci/protobuf-old branch June 1, 2020 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev/ci Involves CircleCI, GitHub Actions, or GitLab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants