-
-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Require Ruby 3.1 #16294
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
Require Ruby 3.1 #16294
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not blocker on 4.2.0 but might want to allow this on macOS a bit more widely if we're gonna portable Ruby for everyone. Still think it'd be nice to allow the relevant Homebrew Ruby to be used if it's installed both here and for things like rubydoc.brew.sh etc.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This being prioritising arbitrary system Rubies or the
HOMEBREW_USE_RUBY_FROM_PATHvariable?homebrew-core Ruby is slower than Portable Ruby but could maybe visit that in a separate PR if there's a benefit for doing so.
A setup-ruby type action that finds and uses the Ruby that Homebrew uses could make sense rather than aligning "3.1" everywhere like we currently are. I could write something today if that sounds interesting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the prior but I'm very open to being talked out of that.
Yeh, I'm thinking less about the speed etc. but more for platforms where we don't yet support portable Ruby yet and being able to more easily test new Ruby versions that way. Maybe overkill.
This seems like a good idea.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now that's enabled for Linux by default. Currently system Ruby on Linux is prioritised over Portable Ruby, as that's how it's always been. I've been tempted to switch that round.
For newer versions, you need
HOMEBREW_USE_RUBY_FROM_PATHanyway to bypass the strict 3.1 version check. This should work on both macOS and Linux today.