caciviclab / odca-jekyll

New ODCA front end
https://www.opendisclosure.io
GNU Affero General Public License v3.0
17 stars 14 forks source link

ci: pass BUNDLER_VERSION as command line option to gem install bundler #467

Closed ckingbailey closed 10 months ago

ckingbailey commented 10 months ago

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.

Screenshot of CircleCI build failing

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.