Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

bundler incorrectly misses dependency #2185

Closed
TigerWolf opened this issue Nov 26, 2012 · 4 comments
Closed

bundler incorrectly misses dependency #2185

TigerWolf opened this issue Nov 26, 2012 · 4 comments

Comments

@TigerWolf
Copy link

seattlerb/ruby_parser#88

Bundler incorreclty missed a dependency when installing this gem - installing it via ruby gems works but using bundler, it fails.

# $ ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0]
# $ gem -v
1.8.24
# $ gem install ruby_parser
Fetching: sexp_processor-4.1.2.gem (100%)
Fetching: ruby_parser-3.0.3.gem (100%)
Successfully installed sexp_processor-4.1.2
Successfully installed ruby_parser-3.0.3
2 gems installed
Installing ri documentation for sexp_processor-4.1.2...
Building YARD (yri) index for sexp_processor-4.1.2...
Installing ri documentation for ruby_parser-3.0.3...
Building YARD (yri) index for ruby_parser-3.0.3...
Installing RDoc documentation for sexp_processor-4.1.2...
Installing RDoc documentation for ruby_parser-3.0.3...

I then uninstalled both sexp_processor and ruby_parser

#$ bundle
Fetching gem metadata from https://rubygems.org/.........
Installing ruby_parser (3.0.3) 
Using bundler (1.2.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
#$ bundle -v
Bundler version 1.2.2
#$ ruby_parse
/Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find sexp_processor (~> 4.1) amongst [...] (Gem::LoadError)
    from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:777:in `block in activate_dependencies'
    from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `each'
    from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in `activate_dependencies'
    from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in `activate'
    from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:in `gem'
    from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327/bin/ruby_parse:24:in `<main>'
#$ cat Gemfile
source 'https://rubygems.org'

gem "ruby_parser"
#$ cat Gemfile.lock 
GEM
  remote: https://rubygems.org/
  specs:
    ruby_parser (3.0.3)

PLATFORMS
  ruby

DEPENDENCIES
  ruby_parser
#$ gem uninstall ruby_parser
Remove executables:
    ruby_parse, ruby_parse_extract_error

in addition to the gem? [Yn]  y
Removing ruby_parse
Removing ruby_parse_extract_error
Successfully uninstalled ruby_parser-3.0.3
#$ bundle --verbose
Fetching gem metadata from https://rubygems.org/
Query List: ["ruby_parser"]
Query Gemcutter Dependency Endpoint API: ruby_parser
Fetching from: https://rubygems.org/api/v1/dependencies?gems=ruby_parser
HTTP Success
Query List: ["sexp_processor", "ParseTree", "hoe"]
Query Gemcutter Dependency Endpoint API: sexp_processor ParseTree hoe
Fetching from: https://rubygems.org/api/v1/dependencies?gems=sexp_processor,ParseTree,hoe
HTTP Success
Query List: ["rake", "RubyInline", "rubyforge", "gemcutter", "SexpProcessor"]
Query Gemcutter Dependency Endpoint API: rake RubyInline rubyforge gemcutter SexpProcessor
Fetching from: https://rubygems.org/api/v1/dependencies?gems=rake,RubyInline,rubyforge,gemcutter,SexpProcessor
HTTP Success
Query List: ["json", "json_pure", "net-scp", "ZenTest"]
Query Gemcutter Dependency Endpoint API: json json_pure net-scp ZenTest
Fetching from: https://rubygems.org/api/v1/dependencies?gems=json,json_pure,net-scp,ZenTest
HTTP Success
Query List: ["spruz", "net-ssh"]
Query Gemcutter Dependency Endpoint API: spruz net-ssh
Fetching from: https://rubygems.org/api/v1/dependencies?gems=spruz,net-ssh
HTTP Success
Query List: ["needle", "jruby-pageant", "echoe"]
Query Gemcutter Dependency Endpoint API: needle jruby-pageant echoe
Fetching from: https://rubygems.org/api/v1/dependencies?gems=needle,jruby-pageant,echoe
HTTP Success
Query List: ["highline", "allison", "rcov", "rdoc"]
Query Gemcutter Dependency Endpoint API: highline allison rcov rdoc
Fetching from: https://rubygems.org/api/v1/dependencies?gems=highline,allison,rcov,rdoc
HTTP Success
Query List: ["termios", "minitest"]
Query Gemcutter Dependency Endpoint API: termios minitest
Fetching from: https://rubygems.org/api/v1/dependencies?gems=termios,minitest
HTTP Success
Query List: []
Unmet Dependencies: []
Installing ruby_parser (3.0.3) from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327/specifications/ruby_parser-3.0.3.gemspec 
Using bundler (1.2.2) from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327@global/specifications/bundler-1.2.2.gemspec 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
@indirect
Copy link
Member

This is a bug in rubygems/bundler-api. For more information, see rubygems/bundler-api#18.

On Nov 25, 2012, at 4:43 PM, TigerWolf notifications@github.com wrote:

seattlerb/ruby_parser#88

Bundler incorreclty missed a dependency when installing this gem - installing it via ruby gems works but using bundler, it fails.

$ ruby -v

ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-darwin12.2.0]

$ gem -v

1.8.24

$ gem install ruby_parser

Fetching: sexp_processor-4.1.2.gem (100%)
Fetching: ruby_parser-3.0.3.gem (100%)
Successfully installed sexp_processor-4.1.2
Successfully installed ruby_parser-3.0.3
2 gems installed
Installing ri documentation for sexp_processor-4.1.2...
Building YARD (yri) index for sexp_processor-4.1.2...
Installing ri documentation for ruby_parser-3.0.3...
Building YARD (yri) index for ruby_parser-3.0.3...
Installing RDoc documentation for sexp_processor-4.1.2...
Installing RDoc documentation for ruby_parser-3.0.3...
#$ bundle
Fetching gem metadata from https://rubygems.org/.........
Installing ruby_parser (3.0.3)
Using bundler (1.2.2)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.
#$ bundle -v
Bundler version 1.2.2
#$ ruby_parse
/Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find sexp_processor (~> 4.1) amongst [...] (Gem::LoadError) from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:777:inblock in activate_dependencies'
from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:in each' from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:766:inactivate_dependencies'
from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:750:in activate' from /Users/kieranandrews/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems.rb:1232:ingem'
from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327/bin/ruby_parse:24:in `

'
#$ cat Gemfile
source 'https://rubygems.org'

gem "ruby_parser"
#$ cat Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
ruby_parser (3.0.3)

PLATFORMS
ruby

DEPENDENCIES
ruby_parser
Kierans-iMac:test kieranandrews$ gem uninstall ruby_parser
Remove executables:
ruby_parse, ruby_parse_extract_error

in addition to the gem? [Yn] y
Removing ruby_parse
Removing ruby_parse_extract_error
Successfully uninstalled ruby_parser-3.0.3
#$ bundle --verbose
Fetching gem metadata from https://rubygems.org/
Query List: ["ruby_parser"]
Query Gemcutter Dependency Endpoint API: ruby_parser
Fetching from: https://rubygems.org/api/v1/dependencies?gems=ruby_parser
HTTP Success
Query List: ["sexp_processor", "ParseTree", "hoe"]
Query Gemcutter Dependency Endpoint API: sexp_processor ParseTree hoe
Fetching from: https://rubygems.org/api/v1/dependencies?gems=sexp_processor,ParseTree,hoe
HTTP Success
Query List: ["rake", "RubyInline", "rubyforge", "gemcutter", "SexpProcessor"]
Query Gemcutter Dependency Endpoint API: rake RubyInline rubyforge gemcutter SexpProcessor
Fetching from: https://rubygems.org/api/v1/dependencies?gems=rake,RubyInline,rubyforge,gemcutter,SexpProcessor
HTTP Success
Query List: ["json", "json_pure", "net-scp", "ZenTest"]
Query Gemcutter Dependency Endpoint API: json json_pure net-scp ZenTest
Fetching from: https://rubygems.org/api/v1/dependencies?gems=json,json_pure,net-scp,ZenTest
HTTP Success
Query List: ["spruz", "net-ssh"]
Query Gemcutter Dependency Endpoint API: spruz net-ssh
Fetching from: https://rubygems.org/api/v1/dependencies?gems=spruz,net-ssh
HTTP Success
Query List: ["needle", "jruby-pageant", "echoe"]
Query Gemcutter Dependency Endpoint API: needle jruby-pageant echoe
Fetching from: https://rubygems.org/api/v1/dependencies?gems=needle,jruby-pageant,echoe
HTTP Success
Query List: ["highline", "allison", "rcov", "rdoc"]
Query Gemcutter Dependency Endpoint API: highline allison rcov rdoc
Fetching from: https://rubygems.org/api/v1/dependencies?gems=highline,allison,rcov,rdoc
HTTP Success
Query List: ["termios", "minitest"]
Query Gemcutter Dependency Endpoint API: termios minitest
Fetching from: https://rubygems.org/api/v1/dependencies?gems=termios,minitest
HTTP Success
Query List: []
Unmet Dependencies: []
Installing ruby_parser (3.0.3) from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327/specifications/ruby_parser-3.0.3.gemspec
Using bundler (1.2.2) from /Users/kieranandrews/.rvm/gems/ruby-1.9.3-p327@global/specifications/bundler-1.2.2.gemspec
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

Reply to this email directly or view it on GitHub.

@elskwid
Copy link

elskwid commented Nov 26, 2012

@TigerWolf - did you see @indirect's comment about using bundle install --full-index to work around this problem?

@TigerWolf
Copy link
Author

I didn't see that initially, will use that for now.

@hone
Copy link
Contributor

hone commented Nov 28, 2012

This isn't an issue on Bundler and I've deployed the fix and updated the database, so I'm closing this issue.

@hone hone closed this as completed Nov 28, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants