The build started failing two days ago with "Error installing bundler" because it's trying to install a version of Bundler that's incompatible with Ruby 2.7. This repo's Gemfile.lock specifies Bundler 2.1.4, but CircleCI is trying to install 2.5.1.
It seems detecting the desired Bundler version from an env var is no longer working. This PR changes it to pass the Bundler version, pulled from Gemfile.lock, as an explicit option to gem install bundler rather than relying on Gem to detect the version from the env var.
The build started failing two days ago with "Error installing bundler" because it's trying to install a version of Bundler that's incompatible with Ruby 2.7. This repo's Gemfile.lock specifies Bundler 2.1.4, but CircleCI is trying to install 2.5.1.
It seems detecting the desired Bundler version from an env var is no longer working. This PR changes it to pass the Bundler version, pulled from Gemfile.lock, as an explicit option to
gem install bundler
rather than relying on Gem to detect the version from the env var.