How do you undo bundle install --without

前端 未结 4 743
一生所求
一生所求 2020-12-24 11:06

How do you undo running

bundle install --without development

Right now, I have gems in the development group that are being ignored because

相关标签:
4条回答
  • 2020-12-24 11:28
    bundle install --no-deployment
    
    0 讨论(0)
  • 2020-12-24 11:39

    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
    
    0 讨论(0)
  • 2020-12-24 11:41

    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.

    0 讨论(0)
  • 2020-12-24 11: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
    
    0 讨论(0)
提交回复
热议问题