开发者

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

开发者 https://www.devze.com 2023-03-13 10:11 出处:网络
I have a couple of needs in my application for which working on edge Rails (3.1) would help me complete my task faster.

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消