Project

General

Profile

Actions

Bug #3140

closed

gem activation has changed between 1.8 and 1.9

Added by tenderlovemaking (Aaron Patterson) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-04-12 trunk 27317) [x86_64-darwin10.2.0]
Backport:
[ruby-core:29486]

Description

=begin
1.8 will raise gem activation errors where ruby 1.9 will not.

To reproduce this bug, first install these gems:

$ gem install rubygems-bug-parent
$ gem install rubygems-bug-child

Your gem list should look like this:

$ gem list rubygems-bug

*** LOCAL GEMS ***

rubygems-bug-child (1.1, 1.0)
rubygems-bug-parent (1.0)

Then run the following program:

 $ ruby -rubygems -e "require 'rubygems-bug-child'; require 'rubygems-bug-parent'"

Ruby 1.8 will raise an activation error because of the conflicting versions:

Here I am in version 1.1
/Library/Ruby/Site/1.8/rubygems.rb:230:in activate': can't activate rubygems-bug-child (= 1.0.0, runtime) for ["rubygems-bug-parent-1.0"], already activated rubygems-bug-child-1.1 for [] (Gem::LoadError) from /Library/Ruby/Site/1.8/rubygems.rb:246:in activate'
from /Library/Ruby/Site/1.8/rubygems.rb:245:in each' from /Library/Ruby/Site/1.8/rubygems.rb:245:in activate'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:35:in `require'
from -e:1

Ruby 1.9 will continue along using the 1.1 version, and never detect the version conflict:

$ ruby -rubygems -e "require 'rubygems-bug-child'; require 'rubygems-bug-parent'"
Here I am in version 1.1
=end


Files

undo-prelude-paths.diff (3.03 KB) undo-prelude-paths.diff tenderlovemaking (Aaron Patterson), 07/03/2010 03:47 AM
undo-prelude-paths.diff (3.03 KB) undo-prelude-paths.diff tenderlovemaking (Aaron Patterson), 07/03/2010 03:48 AM
undo-prelude-loadpath-2.diff (4.29 KB) undo-prelude-loadpath-2.diff evanphx (Evan Phoenix), 07/03/2010 08:45 AM
undo-prelude-loadpath-3.diff (4.49 KB) undo-prelude-loadpath-3.diff evanphx (Evan Phoenix), 07/07/2010 03:40 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0