简体   繁体   中英

Ruby gem referencing different versions of same gem

One of my ruby engine( a gem) is having a dependency on one of my other projects. With some issue in other project I have to uplift the dependency version of a gem in my engine. I am getting the following output when running bundle install.

Bundler could not find compatible versions for gem "Gem A":
  In Gemfile:
    My Gem Engine (>= 0) ruby depends on
      Gem A (~> 2.8) ruby

    MyGem Engine (>= 0) ruby depends on
      Gem A (3.0.0.SNAPSHOT.20141016054448)

Updating the rails and ruby version fixed the issue. The dependent gem is having dependency of latest ruby and rails versions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM