Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

bundler is installing rake-0.9.0 even though the Gemfile says "0.8.7" #1204

Closed
dchelimsky opened this Issue · 7 comments

2 participants

@dchelimsky

Environment:

$ gem -v
1.8.4
$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]

Also tried assorted combos of ruby 1.8.7, ree-1.8.7 and earlier versions of rubygems (1.3.7, 1.6.2, 1.7.2) with the same result.

Script to reproduce:

rvm @bundlertest --create
echo 'source :rubygems
gem "rake", "0.8.7"
gem "spork", "0.8.4"' >> Gemfile

gem install bundler
gem list
bundle install
gem list rake

Output:

Fetching: bundler-1.0.13.gem (100%)
Successfully installed bundler-1.0.13
1 gem installed

*** LOCAL GEMS ***

bundler (1.0.13)
Fetching source index for http://rubygems.org/
Installing rake (0.8.7) 
Installing spork (0.8.4) with native extensions 
Using bundler (1.0.13) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

*** LOCAL GEMS ***

rake (0.9.0, 0.8.7)

Bundler's output says it's installing rake 0.8.7, but it is also installing 0.9.0, which it should not be doing.

I had experienced this on a project with a much larger set of gems, and narrowed it down to these two. I am not sure why spork + rake is the magic combo, but perhaps it's because spork has native extensions.

@dchelimsky

More info:


$ gem list

*** LOCAL GEMS ***


[bundlertest]$ gem install spork
Fetching: spork-0.8.4.gem (100%)
Building native extensions.  This could take a while...
Successfully installed spork-0.8.4
1 gem installed
[bundlertest]$ gem list rake

*** LOCAL GEMS ***

rake (0.9.0)
$ gem spec spork | grep rake
$

So this looks like a rubygems bug. I'll post it there as well and leave it to you to decide whether to leave this open or not.

@dchelimsky

Even more info:

https://github.com/timcharper/spork/blob/master/ext/mkrf_conf.rb

Filing a bug report w/ spork now.

@indirect
Owner
@dchelimsky

@indirect - be sure to look at the comments on this issue - the problem is not bundler's.

@indirect
Owner

Thanks for figuring this out! I'll be watching the spork ticket with interest.

@indirect indirect closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.