Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove a gem from my Rails 3 project without getting this really strange Bundle error?

The error is: You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control

WHAT VERSION CONTROL? Why/how does Bundle know anything about version control? I just removed a line from my Gemfile. Am I not supposed to do that?

like image 528
AKWF Avatar asked Oct 07 '10 18:10

AKWF


People also ask

How do I remove gem from Gemfile lock?

You can run just bundle or bundle install to install gems based on your Gemfile. That will remove the instance of mygem from your Gemfile. lock file.

How do I remove a bundler gem?

Installation and usage To install a prerelease version (if one is available), run gem install bundler --pre . To uninstall Bundler, run gem uninstall bundler . See bundler.io for the full documentation.

How do I change my bundle version?

If you want to upgrade the Bundler version used by your application, you can run bundle update --bundler , and your lockfile will be regenerated using the latest version.


1 Answers

Do rm -rf .bundle && bundle install from your project root.

like image 92
glebm Avatar answered Sep 19 '22 14:09

glebm