You must use Bundler 2 or greater with this lockfile

I’m getting this error message. Checking the bundler version locally with

bundle -v
#=>  Bundler version 2.0.1

Here is what image I’m using in Circle CI config.yml:

  - image: circleci/ruby:2.6.1-stretch-browsers

What am I missing ?

I figured out myself, I had to add gem update --system and gem install bundler to the config.yml:

- run:
          name: install dependencies
          command: |
            gem update --system
            gem install bundler

I had to remove the line --format RspecJunitFormatter from the default generated stuff to make it pass.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.