Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

gems:install rake task breaks if a versioned gem is required but an older version is install which satisfies another gem's dependency

#3372

If I have the gems "yourgem-1.0.0" and "mygem-1.0.0" installed, and yourgem depends on mygem >= 1.0.0, then the following configuration will break:

config.gem :mygem, :version => '2.0.0'
config.gem :yourgem, :verison => '1.0.0'

Because yourgem will activate mygem-1.0.0 and trying to activate mygem-2.0.0 will result in a version conflict:

rake aborted! can't activate , already activated mygem-1.0.0

Reported by David Lee · October 13th, 2009 @ 07:21 AM

State: invalid
Milestone: none
Assigned to: Matt Jones Matt Jones
Importance: none

Activity

  1. Matt Jones
    Matt Jones
    • Assigned user set to Matt Jones

    Can you give a real example for this? The one you've shown doesn't make sense for several reasons:

    • since mygem is first, it will be activated first. If your environment.rb says this and you're seeing mygem-1.0.0 activated, then something else is triggering it - maybe a stray require or gem statement in environment.rb?

    • if mygem-2.0.0 is the latest version installed, then the stated dependency in yourgem will ALSO activate mygem-2.0.0, as the code (if all it has is a >= 1.0.0) will pick the highest version.

    Thanks!

    October 16th, 2009 @ 08:36 PM

  2. Mike Riley
    Mike Riley
    • State changed from new to incomplete

    Hello David,

    I am going through some of the old tickets to see if we can get some movement on these older issues. I was curious if you had an example for this as Matt asked for previously. Let us know if you have more information so we can check this out. I am marking this as incomplete for now, but feel free to update this when you have a minute.

    thanks
    Mike Riley
    twitter.com/wdperson

    June 17th, 2010 @ 01:46 AM

  3. David Lee
    David Lee

    Bundler should address these issues. I think it's safe to invalidate this bug.

    June 17th, 2010 @ 01:55 AM

  4. Mike Riley
    Mike Riley
    • State changed from incomplete to invalid

    Hello David,

    Thanks for the update on this issue. I'll mark this as invalid as requested.

    Mike Riley
    twitter.com/wdperson

    June 17th, 2010 @ 01:59 AM