Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You must use Bundler 2 or greater with this lockfile. #43

Open
erikwesterberg opened this issue Jul 10, 2019 · 2 comments
Open

You must use Bundler 2 or greater with this lockfile. #43

erikwesterberg opened this issue Jul 10, 2019 · 2 comments

Comments

@erikwesterberg
Copy link

Problem

You must use Bundler 2 or greater with this lockfile.

Background

Somewhere on the line in our work flow, something changed and Semaphore could not longer do his job.

Semaphore started failing on a commit when no configuration was changed.

Screenshots

Add your screenshots here
image

How did you try to solve the problem?

  1. Double checked if we were on right bundle version.
  2. Reinstalled bundle.
  3. Changed the lockfile.
  4. Followed installation suggestion from Semaphore and that fucked up everything.
  5. Drop databas and reinstalled everything.

Markdown guide

@kermit-klein
Copy link

This happens when you push your Gemfile.lock to your repo,(you will notice that bundle version is 2.x.x at the end of the file)
but semaphore classic is running bundle 1.x.x
do this
run git rm --cached Gemfile.lock on your terminal
then add Gemfile.lock to your .gitignore file.
then git push origin branch_name_here

now if you rebuild the semaphore, it will create its own Gemfile.lock with bundle version 1.x.x
it should run normally.

@maxarvid
Copy link

This remains a problem, and the solution we found in my team is to specify in the Semaphore workflow what version of bundler to use. Our Semaphore workflow looks like this, yrmv:

checkout
sem-service start postgres 11
sem-version ruby 2.5.1
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
gem install bundler:2.2.27
bundle update --bundler
bundle install
bundle exec rails db:create db:migrate
bundle exec rspec

The crucial part is to include gem install bundler:2.2.27 which solved the You must use Bundler 2 or greater with this lockfile. error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants