您不能两次指定具有不同版本要求的相同 gem [英] You cannot specify the same gem twice with different version requirements

查看:51
本文介绍了您不能两次指定具有不同版本要求的相同 gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 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 https://github.com/backlogs/redmine_backlogs/blob/v1.0.2/Gemfile和 ldap 同步的 Gemfile https://github.com/thorin/redmine_ldap_sync/blob/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

在这两种情况下,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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆