清理期间捆绑器混乱
运行gem cleanup
我收到有关删除 gem 的警告。但他们似乎都同意比他们指定的版本更新的版本。为什么我会被警告?
$ gem list bundler
bundler (1.0.13, 1.0.12)
$ gem cleanup
You have requested to uninstall the gem:
bundler-1.0.12
gherkin-2.3.7 depends on [bundler (>= 1.0.10)]
haml-rails-0.3.4 depends on [bundler (~> 1.0.0)]
jquery-rails-1.0 depends on [bundler (~> 1.0.0)]
orm_adapter-0.0.4 depends on [bundler (>= 1.0.0)]
rails-3.0.7 depends on [bundler (~> 1.0)]
rails3-generators-0.17.4 depends on [bundler (>= 1.0.0)]
thor-0.14.6 depends on [bundler (~> 1.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]
这可能是由于依赖宝石内的依赖关系造成的吗? (可怕的句子)。
Running gem cleanup
I'm warned about removing a gem. But they all appear to be ok with a version more current than what they specify. Why am I being warned?
$ gem list bundler
bundler (1.0.13, 1.0.12)
$ gem cleanup
You have requested to uninstall the gem:
bundler-1.0.12
gherkin-2.3.7 depends on [bundler (>= 1.0.10)]
haml-rails-0.3.4 depends on [bundler (~> 1.0.0)]
jquery-rails-1.0 depends on [bundler (~> 1.0.0)]
orm_adapter-0.0.4 depends on [bundler (>= 1.0.0)]
rails-3.0.7 depends on [bundler (~> 1.0)]
rails3-generators-0.17.4 depends on [bundler (>= 1.0.0)]
thor-0.14.6 depends on [bundler (~> 1.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]
Is this due perhaps to dependencies OF dependencies within dependent gems? (scary sentence).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
~>
说明符的意思是“大约大于”,1.0.13 可能正好超出范围。我不确定该说明符有多宽松,但通常~>; 1.0.0
适用于任何1.0.x
,所以你应该没问题。您可以随时存档您的
GEM_HOME
目录并尝试,如果不起作用则恢复。您还可以使用以下命令重新安装特定版本:The
~>
specifier means "approximately greater than" and 1.0.13 may be just out of range. I'm not sure how loose that specifier is, but usually~> 1.0.0
will work for any1.0.x
so you should be okay.You could always archive your
GEM_HOME
directory and try, then restore if it doesn't work out. You can also re-install a specific version with: