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
Use Tapioca with >=Ruby 2.7 for generating RBI files #13297
Comments
I can look into this, but I'll probably wait and see if macOS 13 beta 1 in three weeks is going to force a Ruby change on us (or if we otherwise decide then to just drop system Ruby). It's also worth noting there's a few gems already with Ruby 2.7 requirements. |
For anyone watching: it didn't and we don't want to drop system Ruby yet. |
So we've got two options really:
|
Given this: could we not just run purely Tapioca under 3.1 and nothing else without any splitting? |
Tapioca needs sorbet-runtime, Homebrew needs sorbet-runtime for |
Should be or must be? |
If Sorbet makes a backwards-incompatible change like in #13164: must. Otherwise you can probably get away with it. |
@Bo98 I reckon we try to get away with it for now? Thoughts? |
Probably - I can have a look. What's the plan with #13309? |
@Bo98 Thanks! Unsure. I thought the goal there was for testing later versions but I'm not sure that's actually what's implemented there. I'm fine with a developer-only flag to allow testing with a newer Ruby but don't want it to ever be a requirement for developers or end-users to use a non-system Ruby on newest macOS until it goes away. |
@Bo98 Personally, I don't think there's any value in running Homebrew under a newer Ruby beyond "testing for a impending new macOS system Ruby version". |
In that case it would make sense if #13309 targeted a specific secondary version of Ruby, of which is not yet known given there's no impending new macOS system Ruby version, rather than a blanket anything newer. |
Is this still something we wan to pursue? I'd like to give it a shot if so. |
A bit has changed in a year. I'd say it's increased in scope since then in that I reckon we might end up using a newer Ruby for most dev stuff. Non-devs are still in limbo a bit and there's no clear consensus - maybe it'll be clearer when macOS 14 beta is released on 5th June though I also thought that last year. I was asked on Slack what a Portable Ruby 3 would look like so I can get a branch for that this weekend. I can also add Ruby 3.2 to CI here if we want since everything except vendored gems should already work. One thing's for sure: Sorbet will need updating for macOS 14, and it will not support Ruby 2.6. |
Given the lack of new information to the contrary we should plan for:
|
Work in underway to move to Ruby 3 and this issue will be resolved then so: closing. |
Provide a detailed description of the proposed feature
Tapioca, which we use with
brew typecheck --update
, has removed support for Ruby 2.6, which we use for Homebrew.Our
tapioca
/"Update RBI files" CI job should be updated to always use a system, GitHub Actions Ruby >=2.7.Our
brew typecheck --update
usage outside of CI, i.e. for maintainers/contributors, should use whatever versionbrew install ruby
installs.What is the motivation for the feature?
Be able to update the Tapioca gem in Homebrew/brew.
How will the feature be relevant to at least 90% of Homebrew users?
Fewer bugs due to better RBI files and type checking.
What alternatives to the feature have been considered?
The text was updated successfully, but these errors were encountered: