Skip to content

Add workaround for Ruby 3.1 after RubyGems 3.7.0 release #780

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

Merged
merged 3 commits into from
Jul 16, 2025

Conversation

deivid-rodriguez
Copy link
Contributor

Like every time I release a version of RubyGems dropping support for a EOL Ruby, I forgot to update ruby/setup-ruby before the release, so that rubygems: latest does not break 😅

Fixing it now.

This issue was fixed by rubygems/rubygems#7334, shipped with RubyGems 3.5.4. That version of RubyGems comes by default with Ruby 3.3.1 or higher, so I believe we just need one more future update similar to this one right before shipping a RubyGems version dropping support for Ruby 3.2. I will try to remember that one last time!

Copy link

@simi simi left a comment

Choose a reason for hiding this comment

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

💪

@deivid-rodriguez
Copy link
Contributor Author

Uggh, apparently on Windows Bundler is installed with --force flag to gem install, and that bypasses any dependency constraints (including required_ruby_version). So the new release has also broken something on Windows. Looking into it.

It was originally added by ruby#253,
in order to fix CI. However, now CI passes without it so I assume this
was fixed by rubyinstaller2.

Force actually bypasses dependency constraints so it's actually
installing the latest Bundler in a version of Ruby that's incompatible
with it.
@deivid-rodriguez deivid-rodriguez force-pushed the catchup-with-rubygems-release branch from 48a7ec3 to 9142f40 Compare July 16, 2025 10:26
@deivid-rodriguez
Copy link
Contributor Author

Not using the --force flag on Windows fixes things. It was added apparently to fix some CI issues in #253, but nothing is failing now without it so I assume real culprit was fixed somewhere (maybe rubyinstaller2).

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Thank you!

@eregon eregon merged commit 4727905 into ruby:master Jul 16, 2025
190 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants