-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
iOS Ruby Updates #32456
iOS Ruby Updates #32456
Conversation
Rubygem's bundle will only use config as described in: https://bundler.io/man/bundle-config.1.html#DESCRIPTION 1. Local config (<project_root>/.bundle/config or $BUNDLE_APP_CONFIG/config) 2. Environmental variables (ENV) 3. Global config (~/.bundle/config) While in the root directory it was using the facebook#1 (.bundle/config), in the template it wasn't since the folder is `_bundle` (underscore, not a leading dot). This commit makes sure the desired config is used, also takes care to sync both configuration files, copying the root to the template.
Also fix template/Gemfile.lock PLATFORM, it should be "ruby" and not specific to ARM64/BigSur. This was done by calling: ./scripts/update-ruby.sh
|
PR build artifact for 92c6172 is ready. |
Base commit: eccbf9b |
@charlesbdudley has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Base commit: 7b77cc6 |
@charlesbdudley merged this pull request in 1e6add1. |
Summary: Fix the `scripts/update-ruby.sh` so it always use the correct [bundle config](https://bundler.io/man/bundle-config.1.html#DESCRIPTION). In the current version it wasn't using the correct configuration inside the `template/` directory, resulting in incorrect platform for `template/Gemfile.lock`. While at that, update the gems to their latest version: - ethon 0.14.0 -> 0.15.0 - json 0.5.1 -> 0.6.0 - zeitwerk 2.4.2 -> 2.5.1 - bundler 2.2.28 -> 2.2.29 No changelog Pull Request resolved: #32456 Test Plan: Run `bump-oss-version.js` and see `template/Gemfile.lock` lists `ruby` as the `PLATFORM` (no diff in that line). - e18cf90#r58230816 Reviewed By: yungsters Differential Revision: D31841524 Pulled By: charlesbdudley fbshipit-source-id: 695c245fcb344c866afed45f747e04233e5c91e4
Summary
Fix the
scripts/update-ruby.sh
so it always use the correct bundle config. In the current version it wasn't using the correct configuration inside thetemplate/
directory, resulting in incorrect platform fortemplate/Gemfile.lock
.While at that, update the gems to their latest version:
Changelog
No changelog
Test Plan
Run
bump-oss-version.js
and seetemplate/Gemfile.lock
listsruby
as thePLATFORM
(no diff in that line).References