Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
bundle install doesn't work for git gems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
tom_302  
View profile  
 More options Aug 16 2012, 3:26 pm
From: tom_302 <thomas.she...@gmail.com>
Date: Thu, 16 Aug 2012 12:26:29 -0700 (PDT)
Local: Thurs, Aug 16 2012 3:26 pm
Subject: bundle install doesn't work for git gems

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/bundle r/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/bundle r/source.rb:372:in
`local_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/source.rb:557:in
`specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:188:in
`resolve'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:186:in
`each'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:186:in
`resolve'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:127:in
`specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:172:in
`specs_for'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:161:in
`requested_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/environment.rb:23:in
`requested_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/runtime.rb:11:in
`setup'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r.rb:107:in
`setup'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/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/bundle r/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/bundle r/source.rb:372:in
`local_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/source.rb:557:in
`specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:188:in
`resolve'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:186:in
`each'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:186:in
`resolve'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:127:in
`specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:172:in
`specs_for'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/definition.rb:161:in
`requested_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/environment.rb:23:in
`requested_specs'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/runtime.rb:11:in
`setup'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r.rb:107:in
`setup'
from
/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/bundler-1.1.3/lib/bundle r/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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andre Arko  
View profile  
 More options Aug 17 2012, 12:12 pm
From: Andre Arko <an...@arko.net>
Date: Fri, 17 Aug 2012 09:12:34 -0700
Local: Fri, Aug 17 2012 12:12 pm
Subject: Re: bundle install doesn't work for git gems

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.

On Aug 16, 2012, at 12:26 PM, tom_302 wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »