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
Add ruby 3.0.0 support #7922
Comments
Do you know where this requirement is coming from? I see that our gemspec requires |
After hours of being stumped and studying the code for both bundler and gem (since if it isn't provided by you, it must be injected somewhere, right?), it dawned on me that the google-protobuf gem is being supplied in different versions:
So this seems to be injected by the build process or build system. Which makes sense since the ABI has changed. |
This PR adds support Ruby the latest Ruby 3.0 build (preview2). Given the close proximity of the final release, we don't foresee any major compatibility issues with the stable release. We added two variants of Ruby 3.0 to CI: `3.0` and `3.0-jit`, to allow us to test if the new JIT affects the tracer correctness and performance. Overall, there was only one change in the Sinatra integration necessary for the tracer to support Ruby 3.0. #### Temporarily disabled features for Ruby 3.0 * `rdkafka`, does not install. We put a fix up for it, pending merge and release: karafka/rdkafka-ruby#144 * `protobuf`, does not install. Pending: protocolbuffers/protobuf#7922 * Rails tests: only Rails 6.1 supports Ruby 3.0: older versions fail as they lack this [this fix](rails/rails@3f27aa8cdf8). Given we don't currently have full support for Rails 6.1, we don't officially support Rails in Ruby 3.0. Thus, **supporting Rails 6.1 should be a priority follow up task for us.** I'm holding off updating our GettingStarted.md, given the lack of support for Rails and the fact that full Ruby 3.0 is not here yet. I tried to update our docs while mentioning the lack of Rails support, but I don't believe it reads very clearly.
Is there any ETA for supporting ruby 3.0 ? |
xref: #8134 |
This should be fixed as of #8184, released in 3.15.0-rc1. Please let us know if you run into problems. |
What language does this apply to?
ruby
Describe the problem you are trying to solve.
Ruby 3.0.0-preview1 was released over the weekend. We'd like to check our ruby services before the official ruby 3.0 release (probably on christmas, as this is the usual ruby release date for new versions). However the google-protobuf gem explicitly prohibits bumping the ruby version to beyond 2.7 (the current stable version):
Describe the solution you'd like
The google-protobuf gem is installable under ruby 3.0.0. I'd be happy with a solution that is locked to the preview without any guarantee of functionality in production environments.
The text was updated successfully, but these errors were encountered: