Skip to content

Upgrade to Ruby 4.0#53

Open
brandur wants to merge 1 commit intomasterfrom
brandur-ruby-4
Open

Upgrade to Ruby 4.0#53
brandur wants to merge 1 commit intomasterfrom
brandur-ruby-4

Conversation

@brandur
Copy link
Copy Markdown
Contributor

@brandur brandur commented Dec 25, 2025

Just for fun, upgrade to Ruby 4.0 [1]. It's been a few months now, so
hopefully at the downstream gems have been fixed up.

Just for good measure, I also ran a make update to update all gems.
Some updates like for standardrb are necessary to get this working.

[1] https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/

@brandur brandur force-pushed the brandur-ruby-4 branch 3 times, most recently from c01dd78 to d2f4643 Compare December 25, 2025 22:53
Gemfile Outdated
Comment on lines +7 to +8
# gem "ffi", git: "https://github.com/ffi/ffi", branch: "master"
# gem "pg", git: "https://github.com/ged/ruby-pg", branch: "master"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

don't these need to be uncommented?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, heh. Didn't end up working. Tried to do this a little too early ... everything's still super broken.

@brandur
Copy link
Copy Markdown
Contributor Author

brandur commented Dec 26, 2025

Haha, okay, what a mess. Going to abandon this one for now, but notes to self for later:

  • The pg gem is quite broken, depending on Ruby <= 3.5.
  • The bundled RuboCop can't support Ruby 4.0. Rubocop has a release that supports 4.0, but:
  • Standard is affixed to an old version of RuboCop. Looking at Standard's repo, I couldn't find any evidence that there's a release forthcoming.

Probably the best thing is to just wait a couple weeks/months for all these things to resolve themselves.

@brandur brandur changed the title Upgrade to Ruby 4.0.0 on release day Upgrade to Ruby 4.0 Mar 28, 2026
@brandur brandur force-pushed the brandur-ruby-4 branch 3 times, most recently from 8326d72 to 204c9c9 Compare March 28, 2026 14:55
Just for fun, upgrade to Ruby 4.0 [1]. It's been a few months now, so
hopefully at the downstream gems have been fixed up.

Just for good measure, I also ran a `make update` to update all gems.
Some updates like for `standardrb` are necessary to get this working.

[1] https://www.ruby-lang.org/en/news/2025/12/25/ruby-4-0-0-released/
@brandur brandur requested a review from bgentry March 28, 2026 15:04
@brandur
Copy link
Copy Markdown
Contributor Author

brandur commented Mar 28, 2026

@bgentry Finally works lol.

Copy link
Copy Markdown
Contributor

@bgentry bgentry left a comment

Choose a reason for hiding this comment

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

Wooo :shipit:

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.

2 participants