Jonathan Leung
Jonathan Leung

Reputation: 2061

How do you undo bundle install --without

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)

Upvotes: 45

Views: 18773

Answers (4)

Fábio Batista
Fábio Batista

Reputation: 25270

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

Upvotes: 43

BeeZee
BeeZee

Reputation: 1602

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.

Upvotes: 53

dedicateditman
dedicateditman

Reputation: 11

bundle install --no-deployment

Upvotes: 1

Dogbert
Dogbert

Reputation: 222118

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

Upvotes: 8

Related Questions