bundle install doesn't work for git gems

524 views
Skip to first unread message

tom_302

unread,
Aug 16, 2012, 3:26:29 PM8/16/12
to ruby-b...@googlegroups.com
Hello,

I've cloned a rails 3-1-stable to a local git repo:

bash-3.2$ jruby -S bundle exec rake -T
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:574:in `load_spec_files': git://github.com/fxn/sdoc.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:372:in `local_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:557:in `specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:188:in `resolve'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:186:in `each'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:186:in `resolve'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:127:in `specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:172:in `specs_for'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:161:in `requested_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/environment.rb:23:in `requested_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:11:in `setup'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:107:in `setup'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/setup.rb:17


bash-3.2$ jruby -S bundle install
Using rake (0.9.2.2) 
Using RedCloth (4.2.9) 
Using multi_json (1.2.0) 
Using activesupport (3.1.6) from source at . 
Using builder (3.0.0) 
Using i18n (0.6.0) 
Using activemodel (3.1.6) from source at . 
Using erubis (2.7.0) 
Using rack (1.3.6) 
Using rack-cache (1.2) 
Using rack-mount (0.8.3) 
Using rack-test (0.6.1) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.0.4) 
Using actionpack (3.1.6) from source at . 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.3.3) 
Using actionmailer (3.1.6) from source at . 
Using arel (2.2.3) 
Using tzinfo (0.3.33) 
Using activerecord (3.1.6) from source at . 
Using activerecord-jdbc-adapter (1.2.2) 
Using jdbc-mysql (5.1.13) 
Using activerecord-jdbcmysql-adapter (1.2.2) 
Using jdbc-postgres (9.1.901) 
Using activerecord-jdbcpostgresql-adapter (1.2.2) 
Using jdbc-sqlite3 (3.7.2) 
Using activerecord-jdbcsqlite3-adapter (1.2.2) 
Using activeresource (3.1.6) from source at . 
Using bcrypt-ruby (3.0.1) 
Using bouncy-castle-java (1.5.0146.1) 
Using bundler (1.1.3) 
Using execjs (1.4.0) 
Using rack-ssl (1.3.2) 
Using json (1.7.4) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.1.6) from source at . 
Using jquery-rails (2.0.3) 
Using jruby-openssl (0.7.7) 
Using json_pure (1.7.4) 
Using memcache-client (1.8.5) 
Using metaclass (0.0.1) 
Using mocha (0.10.5) 
Using nokogiri (1.5.5) 
Using rails (3.1.6) from source at . Enter your password to install the bundled RubyGems to your system: 

Using sdoc (0.3.15) from git://github.com/fxn/sdoc.git (at master) 
Using uglifier (1.2.4) 
Using w3c_validators (1.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

Even though I copied/pasted Bundler's exact instructions, I receive the same error:

bash-3.2$ jruby -S bundle exec rake -T
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:574:in `load_spec_files': git://github.com/fxn/sdoc.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:372:in `local_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/source.rb:557:in `specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:188:in `resolve'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:186:in `each'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:186:in `resolve'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:127:in `specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:172:in `specs_for'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/definition.rb:161:in `requested_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/environment.rb:23:in `requested_specs'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/runtime.rb:11:in `setup'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler.rb:107:in `setup'
from /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundler/setup.rb:17
bash-3.2$ 

It seems bundler isn't even self-consistant with its own instructions and install paths.  (I see that bundler installs the git-based gem in ~/.bundler/cache/get/sdoc-.... but evidently bundler doesn't check that location when testing if gems are installed.)

(If I bypass bundler entirely and run 'jruby -S gem install sdoc' the gem is installed in /opt/local/share/java/jruby/lib/ruby/gems/1.8/gems.  And then even jruby -S bundle exec rake -T works).  

Any advise is much appreciated.

Andre Arko

unread,
Aug 17, 2012, 12:12:34 PM8/17/12
to ruby-b...@googlegroups.com
This seems like it's probably a bug, at least from what you've written in this email. The same situation you describe works correctly under MRI, so it's also possibly that JRuby works differently. Please see https://github.com/carlhuda/bundler/blob/master/ISSUES.md for instructions on troubleshooting and filing bug reports.

--
You received this message because you are subscribed to the Google Groups "ruby-bundler" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ruby-bundler/-/RBvDWJrQX2IJ.
To post to this group, send email to ruby-b...@googlegroups.com.
To unsubscribe from this group, send email to ruby-bundler...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ruby-bundler?hl=en.

Reply all
Reply to author
Forward
0 new messages