Now when you run bundle install it will use bundler 2.2.33. Then change the very bottom line of Gemfile.lock to say that it was bundled with 2.2.33 like: BUNDLED WITH So the first thing to do is gem install bundler -v "2.2.33". Since I want my dev environment to use the same bundler version as my production environment, I want to use 2.2.33. But my hosting company, Heroku, is using bundler 2.2.33. This version of Ruby comes with bundler 2.2.32. So, let's explain it all with an example. This feels completely backwards since Gemfile.lock is supposed to be generated automatically by bundler, but that is the state of things at this point. You can see the list here.īut what has not been explained in the answers so far is that you can control which version of bundler is used by editing your Gemfile.lock and specifying the version you want to use on the very last line of the file, where it says: BUNDLED WITH So depending on your version of Ruby, you will have a different version of bundler included. $ gem list bundlerĪs points out, after Ruby 2.6 bundler became a default gem. Successfully installed bundler-2.1.4 as a default gemįinally you'll have installed only the version you wanted. Then install (or reinstall) the gem you want to set as default. rw-r-r- 1 myuser staff 15134 Jan 7 17:30 bundler-2.1.4.gemspecĭelete the one you don't need. ~/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/specifications/default/ How to replace the toner cartridge.Make sure the machine is turned on.0:00 Opening0:04 Open the front cover0:08 Remove the toner cartridge and drum unit a. # I'm running RVM to manage my Ruby versions gemspec file corresponding to the default gem you want to delete. I had the same problem but with a newer version $ gem list bundlerīut after following indications on this post Two default versions of rake installed - how to delete one allowed me to deleted one. Then, if you check again it will show you the desired version $ bundle -v So we have to overrides it by reinstalling the required bundler version again $ gem install bundler -version '1.17.2'ĭone installing documentation for bundler after 1 seconds Remove the version that you need to remove $ rm bundler-2.1.4.gemspecīut, if you check bundle version, you still get the deleted version as default $ bundler -v rw-r-r- 1 yohanes yohanes 15K Jun 1 09:31 bundler-2.1.4.gemspec ĭrwxr-xr-x 3 yohanes yohanes 20K Jun 1 10:05. Go to the specifications/default directory and look for bundlers gemspec $ cd /home/yohanes/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/specifications/defaultĭrwxr-xr-x 2 yohanes yohanes 4,0K Jun 1 10:05. INSTALLATION DIRECTORY: /home/yohanes/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0 For those who use rbenv, let say by accidentally you have two default versions $ gem list | grep bundlerīundler (default: 2.1.4, default: 1.17.2)Ĭheck your gem installation path $ gem environment
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |