清理期间捆绑器混乱

发布于 2024-11-05 20:58:39 字数 720 浏览 0 评论 0原文

运行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑾兮 2024-11-12 20:58:39

~> 说明符的意思是“大约大于”,1.0.13 可能正好超出范围。我不确定该说明符有多宽松,但通常 ~>; 1.0.0 适用于任何 1.0.x,所以你应该没问题。

您可以随时存档您的 GEM_HOME 目录并尝试,如果不起作用则恢复。您还可以使用以下命令重新安装特定版本:

gem install bundler -v 1.0.12

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 any 1.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:

gem install bundler -v 1.0.12
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文