protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Support Ruby 4.0

Open frederikspang opened this issue 2 months ago • 2 comments

frederikspang avatar Dec 28 '25 19:12 frederikspang

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Dec 28 '25 19:12 google-cla[bot]

This PR will need to wait until someone on the Protobuf team can do the internal housekeeping to verify that the changes to test_ruby.yml work as expected, because the current CI infrastructure ignores those changes from external contributors. I’ll be back online in the second week of January.

JasonLunn avatar Dec 28 '25 21:12 JasonLunn

Status update: Chasing down an issue with gem generation. Currently, everything works if the gem is build under an older version of Rubygems, but breaks under the latest version that ships with 4.0. Details: https://github.com/ruby/rubygems/pull/8569#issuecomment-3741647009

JasonLunn avatar Jan 13 '26 03:01 JasonLunn

See also the new tracking issue https://github.com/ruby/rubygems/issues/9244

JasonLunn avatar Jan 13 '26 03:01 JasonLunn

Dont use the new version, it broken. Wait until 4.1.

Lock ci to use 2.x

seuros avatar Jan 13 '26 06:01 seuros

@JasonLunn when can we expect a release which includes this?

ashkulz avatar Jan 21 '26 06:01 ashkulz

@JasonLunn is there a release date for Ruby 4 support?

kapso avatar Jan 26 '26 20:01 kapso

BTW I used the following and it works for us...

gem 'google-protobuf', force_ruby_platform: true

kapso avatar Jan 26 '26 20:01 kapso

@kapso this is not a solution.. you will spend 40 minutes compiling this gem.

Fine in your local machine once.. good luck if you deploy often.

seuros avatar Jan 26 '26 20:01 seuros