45

How do you undo running

bundle install --without development

Right now, I have gems in the development group that are being ignored because I ran this once... (note that I have tried deleting gemfile.lock to no avail)

Jonathan Leung
  • 2,051
  • 2
  • 19
  • 24

4 Answers4

52

List configs

bundle config

Delete value from config

bundle config --delete without

Add value to config

bundle config --local without development

Or you can manually edit the values in .bundle/config file.

BeeZee
  • 1,572
  • 21
  • 25
43

The updated, correct answer is @caspyin's, here.

My answer is still here for historical purposes:

Bundler settings are stored in a file named .bundle/config. You can reset it by removing it, or removing the entire .bundle directory, like this:

rm -rfv .bundle

Or, if you're scared of rm -rf (it's OK, many people are):

rm .bundle/config
rmdir .bundle
Community
  • 1
  • 1
Fábio Batista
  • 25,002
  • 3
  • 56
  • 68
8

Run

bundle install --without ""

Ref: https://github.com/carlhuda/bundler/blob/master/spec/install/gems/groups_spec.rb#L149-154

    it "clears without when passed an empty list" do
      bundle :install, :without => "emo"

      bundle 'install --without ""'
      should_be_installed "activesupport 2.3.5"
    end
Dogbert
  • 212,659
  • 41
  • 396
  • 397
1
bundle install --no-deployment
aymeric
  • 3,877
  • 2
  • 28
  • 42