如何撤销操作?
bundle install --without development
目前,我在开发组中有一些 gem(宝石)被忽略了,因为我曾经运行过这个(命令)...(请注意,我已尝试删除 gemfile.lock 但没有用)
如何撤销操作?
bundle install --without development
目前,我在开发组中有一些 gem(宝石)被忽略了,因为我曾经运行过这个(命令)...(请注意,我已尝试删除 gemfile.lock 但没有用)
列出配置
bundle config
从配置中删除值
bundle config --delete without
向配置中添加值
bundle config --local without development
或者您可以手动编辑.bundle/config
文件中的值。
更新的正确答案在@caspyin的这里。
我的回答仍然在这里,供历史参考:
Bundler 的设置存储在一个名为
.bundle/config
的文件中。您可以通过删除它或整个.bundle
目录来重置它,像这样:rm -rfv .bundle
或者,如果你害怕使用
rm -rf
命令(没关系,很多人都是):rm .bundle/config rmdir .bundle
bundle install --without ""
it "clears without when passed an empty list" do
bundle :install, :without => "emo"
bundle 'install --without ""'
should_be_installed "activesupport 2.3.5"
end
bundle install --no-deployment