-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Chore] Remove .ruby-version and update Gemfile to support multiple versions of Ruby #36281
Conversation
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Gemfile
Outdated
@@ -1,7 +1,7 @@ | |||
source 'https://rubygems.org' | |||
|
|||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | |||
ruby File.read(File.join(__dir__, '.ruby-version')).strip | |||
ruby ">= 2.6" |
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.
Have you tested with latest 3.2.1? Last I checked (I think it was 3.2.0), CocoaPods just crashed. I had to downgrade to 3.1.3.
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 tested with 3.1.2 and 3.1.3, actually.
Good call, let me check with those as well.
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.
Good call @tido64: cocoapods explodes because of this error:
NoMethodError - undefined method `=~' for []:Array
/Users/cipolleschi/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block (2 levels) in merged_xcconfigs'
Looking at the reported line it seems that they are using =~.
However this commit seems like it has fixed it, but they haven't done a release of Cocoapods yet with the fix.
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.
We should document that RVM doesn't like relative versions (only absolute versions) when navigating into a project directory.
ee2bbd5
to
aa8c2b5
Compare
Base commit: febf6b7 |
aa8c2b5
to
ed1f8bd
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
22a019c
to
7f45415
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
cb4cf6b
to
6bb25a5
Compare
Yup, we are tracking this batch of work in an internal dashboard! |
6bb25a5
to
5fa1ebb
Compare
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@cipolleschi merged this pull request in e57b6d1. |
Haha, tried to install ruby 2.7.6 so long:D |
…of Ruby (facebook#36281) Summary: This Change remove the need to have a specific version of Ruby installed. We are now supporting a wider range of Ruby versions, starting from Ruby 2.6.10 (the ruby installed on MacOS by default). We are still using a Gemfile to control the version of cocoapods that needs to be installed. ## Changelog [IOS] [CHANGED] - Remove `.ruby-version` and update Gemfile to support a wider range of Ruby versions Pull Request resolved: facebook#36281 Test Plan: - Tested locally on RNTester and an app from template, switch across different versions of Ruby - CircleCI is green on the commit Reviewed By: cortinico Differential Revision: D43567660 Pulled By: cipolleschi fbshipit-source-id: e7edfe5806a898a83ba39cb58b1318ebde56a57c
…of Ruby (facebook#36281) Summary: This Change remove the need to have a specific version of Ruby installed. We are now supporting a wider range of Ruby versions, starting from Ruby 2.6.10 (the ruby installed on MacOS by default). We are still using a Gemfile to control the version of cocoapods that needs to be installed. ## Changelog [IOS] [CHANGED] - Remove `.ruby-version` and update Gemfile to support a wider range of Ruby versions Pull Request resolved: facebook#36281 Test Plan: - Tested locally on RNTester and an app from template, switch across different versions of Ruby - CircleCI is green on the commit Reviewed By: cortinico Differential Revision: D43567660 Pulled By: cipolleschi fbshipit-source-id: e7edfe5806a898a83ba39cb58b1318ebde56a57c
…of Ruby (facebook#36281) Summary: This Change remove the need to have a specific version of Ruby installed. We are now supporting a wider range of Ruby versions, starting from Ruby 2.6.10 (the ruby installed on MacOS by default). We are still using a Gemfile to control the version of cocoapods that needs to be installed. ## Changelog [IOS] [CHANGED] - Remove `.ruby-version` and update Gemfile to support a wider range of Ruby versions Pull Request resolved: facebook#36281 Test Plan: - Tested locally on RNTester and an app from template, switch across different versions of Ruby - CircleCI is green on the commit Reviewed By: cortinico Differential Revision: D43567660 Pulled By: cipolleschi fbshipit-source-id: e7edfe5806a898a83ba39cb58b1318ebde56a57c
…of Ruby (facebook#36281) Summary: This Change remove the need to have a specific version of Ruby installed. We are now supporting a wider range of Ruby versions, starting from Ruby 2.6.10 (the ruby installed on MacOS by default). We are still using a Gemfile to control the version of cocoapods that needs to be installed. ## Changelog [IOS] [CHANGED] - Remove `.ruby-version` and update Gemfile to support a wider range of Ruby versions Pull Request resolved: facebook#36281 Test Plan: - Tested locally on RNTester and an app from template, switch across different versions of Ruby - CircleCI is green on the commit Reviewed By: cortinico Differential Revision: D43567660 Pulled By: cipolleschi fbshipit-source-id: e7edfe5806a898a83ba39cb58b1318ebde56a57c
Summary
This Change remove the need to have a specific version of Ruby installed. We are now supporting a wider range of Ruby versions, starting from Ruby 2.6.10 (the ruby installed on MacOS by default).
We are still using a Gemfile to control the version of cocoapods that needs to be installed.
Changelog
[IOS] [CHANGED] - Remove
.ruby-version
and update Gemfile to support a wider range of Ruby versionsTest Plan