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)
现在,我在开发团队中有一些被忽略的珍宝,因为我只运行过一次……(注意,我尝试过删除gemfile。锁无效)
4 个解决方案
#1
40
The updated, correct answer is @caspyin's, here.
更新的正确答案是@caspyin,这里。
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:Bundler设置存储在名为.bundle/config的文件中。您可以通过删除它或删除整个.bundle目录来重置它,如下所示:
rm -rfv .bundle
Or, if you're scared of
rm -rf
(it's OK, many people are):或者,如果你害怕rm -rf(没关系,很多人都害怕):
rm .bundle/config rmdir .bundle
#2
38
List configs
配置列表
bundle config
包配置
Delete value from config
删除值配置
bundle config --delete without
包配置——删除
Add value to config
增加配置的价值
bundle config --local without development
bundle config——不开发的本地
Or you can manually edit the values in .bundle/config
file.
或者您可以手动编辑.bundle/config文件中的值。
#3
7
Run
运行
bundle install --without ""
Ref: https://github.com/carlhuda/bundler/blob/master/spec/install/gems/groups_spec.rb#L149-154
裁判: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
#4
1
bundle install --no-deployment
#1
40
The updated, correct answer is @caspyin's, here.
更新的正确答案是@caspyin,这里。
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:Bundler设置存储在名为.bundle/config的文件中。您可以通过删除它或删除整个.bundle目录来重置它,如下所示:
rm -rfv .bundle
Or, if you're scared of
rm -rf
(it's OK, many people are):或者,如果你害怕rm -rf(没关系,很多人都害怕):
rm .bundle/config rmdir .bundle
#2
38
List configs
配置列表
bundle config
包配置
Delete value from config
删除值配置
bundle config --delete without
包配置——删除
Add value to config
增加配置的价值
bundle config --local without development
bundle config——不开发的本地
Or you can manually edit the values in .bundle/config
file.
或者您可以手动编辑.bundle/config文件中的值。
#3
7
Run
运行
bundle install --without ""
Ref: https://github.com/carlhuda/bundler/blob/master/spec/install/gems/groups_spec.rb#L149-154
裁判: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
#4
1
bundle install --no-deployment