您不能两次指定具有不同版本要求的相同 gem

编程入门 行业动态 更新时间:2024-10-10 03:27:44
本文介绍了您不能两次指定具有不同版本要求的相同 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 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

本文发布于:2023-11-13 11:16:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1584212.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两次   您不   版本   gem

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!