You cannot specify the same gem twice with different version requirements

风流意气都作罢 提交于 2019-12-21 12:41:49

问题


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.

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

In both cases, the simplecov is in the test group. 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


回答1:


All Gemfiles from plugins are merged with general one. Just delete simplecov (>= 0) statement in one of the plugins Gemfile. It is not criminal or illegal.



来源:https://stackoverflow.com/questions/17146907/you-cannot-specify-the-same-gem-twice-with-different-version-requirements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!