In Bundler, how can I override a dependency's version requirements for its own dependencies?

谁说胖子不能爱 提交于 2020-01-03 08:59:09

问题


I have a couple of needs in my application for which working on edge Rails (3.1) would help me complete my task faster.

The problem is that one of the gems I depend on doesn't yet officially support Rails 3.1, and it has a "~> 3.0.0" railties dependency, which creates a dependency conflict and bundler can't resolve my dependencies. Can I override that requirement in my app's Gemfile somehow, or is my only workaround to fork my dependency?


回答1:


Sadly, branching it is the only way to unravel that. Or, being more hacky, modifying the /vendor local installation of the gem.



来源:https://stackoverflow.com/questions/6361996/in-bundler-how-can-i-override-a-dependencys-version-requirements-for-its-own-d

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