equivalentideas
equivalentideas

Reputation: 325

Bundler keeps removing 'BUNDLED WITH' section of Gemfile.lock

My machine is running bundler 1.10.6. When I run bundle install, the BUNDLED WITH block is removed from my Gemfile.lock.

BUNDLED WITH
    1.10.5

If I run git checkout -- Gemfile.lock, it doesn't revert the change. This is a problem because it means I can't get a clear working HEAD so I can't rebase, cherry-pick or run other important git commands.

I understand why bundler usually updates this section of the Gemfile.lock to log the bundler version, but why would it be removing the section?

You can read more about the BUNDLED WITH section at the bundler blog.

Upvotes: 10

Views: 1667

Answers (1)

Yoni
Yoni

Reputation: 636

All you need to do to is to upgrade the "bundler" gem (something that is also recommended)- Simply run: gem update bundler This would work for most people.

Also, try: gem update rubygems-bundler in case that comes from a rubygems issue (which was resolved)

Upvotes: 5

Related Questions