Skip to content

Make bundler-checksum work with bundler v2.5.0+

Stan Hu requested to merge sh-bundler-checksum-fix into master

What does this MR do and why?

Bundler v2.5.0 added a gem_remote_fetcher argument in Bundler::Fetcher::Base in https://github.com/rubygems/rubygems/pull/7092. We need to add that extra argument conditionally to make bundler exec bundle checksum init work again.

This error was first seen by the Renovate bot in !140597 (closed).

How to set up and validate locally

  1. Run bundle exec bundle-checksum init with this branch. Verify it runs fine.
  2. Install the latest bundler: gem install bundler.
  3. Update the BUNDLED WITH version in Gemfile.lock with the version that was just installed (e.g. 2.5.3).
  4. Repeat step 1.
Edited by Stan Hu

Merge request reports