From 479b4bb1ba504706613f71530a4ddcf86ff1bcd9 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Sat, 16 Dec 2023 08:50:20 -0800 Subject: [PATCH] Install bundler versions depending on Ruby version (#41962) Summary: Since yesterday evening (why it is always friday evening???) CircleCI or Gem decided to update the default bundler version that is installed with `gem bundle install`. Therefore, CI for iOS stopped working. This change installs bundler's versions so that they are compatible with the Ruby version. ## Changelog: [Internal] - Fix CI for iOS installing versions of bundler that are compatible with Ruby Pull Request resolved: https://github.com/facebook/react-native/pull/41962 Test Plan: CircleCI is green Reviewed By: GijsWeterings Differential Revision: D52230544 Pulled By: cipolleschi fbshipit-source-id: 2f96e16ecb94159953056e8de757ea4d249f80f0 --- .circleci/configurations/commands.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/configurations/commands.yml b/.circleci/configurations/commands.yml index d6d4827b959..9ce3e4283a1 100644 --- a/.circleci/configurations/commands.yml +++ b/.circleci/configurations/commands.yml @@ -57,7 +57,11 @@ commands: # Set ruby dependencies rbenv global << parameters.ruby_version >> - gem install bundler + if [[ << parameters.ruby_version >> == "2.6.10" ]]; then + gem install bundler -v 2.4.22 + else + gem install bundler + fi bundle check || bundle install --path vendor/bundle --clean - save_cache: key: *rbenv_cache_key