简体   繁体   English

您不能使用不同的版本要求两次指定相同的gem

[英]You cannot specify the same gem twice with different version requirements

I have 2 plugins installed(redmine_backlogs and redmine_ldap_sync), but after upgrade of redmine_ldap_sync from 2.0.0 to 2.0.1 a Gemfile was added. 我安装了2个插件(redmine_backlogs和redmine_ldap_sync),但是在将redmine_ldap_sync从2.0.0升级到2.0.1之后,添加了一个Gemfile。

Here the backlogs's Gemfile https://github.com/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile and ldap sync's Gemfile https://github.com/thorin/redmine_ldap_sync/blob/2.0.1/Gemfile 这里积压的Gemfile https://github.com/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile和ldap sync的Gemfile https://github.com/thorin/redmine_ldap_sync/blob/2.0.1/Gemfile

In both cases, the simplecov is in the test group. 在这两种情况下, simplecov都在测试组中。 I tried to run 我试着跑

bundle install --without development test

but I got this error: 但是我收到了这个错误:

You cannot specify the same gem twice with different version requirements. 
You specified: simplecov (>= 0) and simplecov (~> 0.6)

This does not seem to make sense. 这似乎没有意义。 Is there a way to bypass it without editing the file? 有没有办法绕过它而不编辑文件?

Thanks 谢谢

All Gemfiles from plugins are merged with general one. 插件中的所有Gemfiles都与普通的Gemfiles合并。 Just delete simplecov (>= 0) statement in one of the plugins Gemfile. 只需在其中一个插件Gemfile中删除simplecov (>= 0)语句。 It is not criminal or illegal. 这不是犯罪或非法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM