Bugs item #27749, was opened at 2010-01-29 15:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27749&group_id=126

Category: `gem install` command
Group: v1.3.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Joel Duffin (oxtralite)
Assigned to: Eric Hodel (drbrain)
Summary: local gem install hits network even when gemfile exists locally

Initial Comment:
The RubyGems documentation for gem install says: 

"It will attempt a local installation (i.e. a .gem file in the current 
directory), and if that fails, it will attempt to download and install
the most recent version of the gem you want." 
(http://docs.rubygems.org/read/chapter/10#page33) 

It appears that it still accesses the network even when the .gem file exists 
locally. This significantly slows down local gem installs. You can easily 
verify this by noticing the different in how long the command takes with and 
without the --local option. 

----------------------------------------------------------------------

>Comment By: Ryan Davis (zenspider)
Date: 2010-11-12 15:53

Message:
I'm not seeing any network access at all. Either this was fixed or invalid. 
Reopen if it isn't fixed for you and you can provide a repro that shows the 
problem.

----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2010-02-09 16:10

Message:
I'll take a second look at it.

----------------------------------------------------------------------

Comment By: Joel Duffin (oxtralite)
Date: 2010-02-08 19:56

Message:
I'm trying:

sudo gem install test.gem
vs
sudo gem install -local test.gem

I believe this is a much more common scenario than the one
you describe, though I'm guessing, you are saying it is
equivalent.

It definitely hits the network and takes a lot longer as I
describe. 

----------------------------------------------------------------------

Comment By: Eric Hodel (drbrain)
Date: 2010-02-08 19:16

Message:
I don't see this:

$ ruby -Ilib bin/gem install rake -i ~/tmp/gems --local -V
Installing gem rake-0.8.7
Using local gem /Users/drbrain/.gem/ruby/1.8/cache/rake-0.8.7.gem
[...]
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
$ ruby -Ilib bin/gem install rake -i ~/tmp/gems -V
Installing gem rake-0.8.7
Using local gem /Users/drbrain/tmp/gems/cache/rake-0.8.7.gem
[...]
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27749&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to