Bundler fails Rubygems' Ruby version check #1446

Closed
indirect opened this Issue Sep 22, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Owner

indirect commented Sep 22, 2011

This is a regression in Bundler 1.1. Fortunately, it is not in fact santiago's bug. (I checked. :P)

Somehow the gem rbx-require-relative fails the ruby version check while being installed -- but only if it's a dependency of linecache, not if it's in the gemfile directly.

$ ruby -v
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]

$ cat Gemfile
source :rubygems
gem 'linecache', '0.46'

$ bundle install --path vendor
Fetching dependency information from the API at http://rubygems.org/...
Installing rbx-require-relative (0.0.5) Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Library/Ruby/Site/1.8/rubygems/installer.rb:164:in `install': rbx-require-relative requires Ruby version ~> 1.9.2. (Gem::InstallError)
    from /Users/andre/sw/gems/bundler/lib/bundler/source.rb:84:in `install'
    from /Users/andre/sw/gems/bundler/lib/bundler/rubygems_integration.rb:83:in `preserve_paths'
    from /Users/andre/sw/gems/bundler/lib/bundler/source.rb:83:in `install'
    from /Users/andre/sw/gems/bundler/lib/bundler/installer.rb:73:in `install_gem_from_spec'
    from /Users/andre/sw/gems/bundler/lib/bundler/rubygems_integration.rb:98:in `with_build_args'
    from /Users/andre/sw/gems/bundler/lib/bundler/installer.rb:72:in `install_gem_from_spec'
    from /Users/andre/sw/gems/bundler/lib/bundler/installer.rb:56:in `run'
    from /Users/andre/sw/gems/bundler/lib/bundler/installer.rb:55:in `run'
    from /Users/andre/sw/gems/bundler/lib/bundler/installer.rb:12:in `install'
    from /Users/andre/sw/gems/bundler/lib/bundler/cli.rb:216:in `install'
    from /Users/andre/sw/gems/bundler/lib/bundler/vendor/thor/task.rb:22:in `send'
    from /Users/andre/sw/gems/bundler/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Users/andre/sw/gems/bundler/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Users/andre/sw/gems/bundler/lib/bundler/vendor/thor.rb:263:in `dispatch'
    from /Users/andre/sw/gems/bundler/lib/bundler/vendor/thor/base.rb:386:in `start'
    from /Users/andre/sw/gems/bundler/bin/bundle:13

@ghost ghost assigned indirect Sep 30, 2011

@indirect indirect closed this in 8a9d492 Oct 1, 2011

indirect added a commit that referenced this issue Oct 3, 2011

@hone hone reopened this Oct 4, 2011

hone added a commit that referenced this issue Oct 4, 2011

Merge pull request #1466 from carlhuda/bundler
---

This could produce issues like #1446, where the wrong gem (or no gem) would be found and installed.
Owner

hone commented Oct 4, 2011

Merged #1466

@hone hone closed this Oct 4, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment