我安装了 2 个插件(redmine_backlogs 和 redmine_ldap_sync),但是在将 redmine_ldap_sync 从 2.0.0 升级到 2.0.1 后,添加了一个 Gemfile.
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.
这里是 backlogs 的 Gemfile github/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile和 ldap 同步的 Gemfile github/thorin/redmine_ldap_sync/blob/2.0.1/Gemfile
Here the backlogs's Gemfile github/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile and ldap sync's Gemfile github/thorin/redmine_ldap_sync/blob/2.0.1/Gemfile
在这两种情况下,simplecov 都在测试组中.我试着跑
In both cases, the simplecov is in the test group. I tried to run
bundle install --without development test但我收到此错误:
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?
谢谢
推荐答案来自插件的所有 Gemfiles 都与通用文件合并.只需删除插件 Gemfile 中的 simplecov (>= 0) 语句即可.这不构成犯罪或违法.
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.
更多推荐
您不能两次指定具有不同版本要求的相同 gem
发布评论