[Rubygems-developers] [ rubygems-Bugs-25748 ] Use of --source option seems to break default --include-dependencies option

noreply at rubyforge.org noreply at rubyforge.org
Fri May 1 19:40:06 EDT 2009


Bugs item #25748, was opened at 2009-05-01 09:00
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25748&group_id=126

Category: `gem install` command
>Group: v1.3.x
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Sébastien Luquet (sebastienluquet)
>Assigned to: Eric Hodel (drbrain)
Summary: Use of --source option seems to break default  --include-dependencies option

Initial Comment:
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.2
  - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i386-mswin32]
  - INSTALLATION DIRECTORY: H:/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: H:/ruby/bin/ruby.exe
  - EXECUTABLE DIRECTORY: H:/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mswin32-60
  - GEM PATHS:
     - H:/ruby/lib/ruby/gems/1.8
     - H:/Documents and Settings/seb/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["http://gems.rubyforge.org", "http://gems.rubyonrails.org", "http://gems.github.com"]
     - "gem" => "--no-rdoc --no-ri"
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
     - http://gems.rubyonrails.org
     - http://gems.github.com

rcov should not be installed (dependency of jscruggs-metric_fu)

gem install jscruggs-metric_fu --source http://gems.github.com --debug

Exception `NameError' at H:/ruby/lib/ruby/site_ruby/1.8/rubygem /command_manager.rb:161 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at H:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:805 - Could not find RubyGem test-unit (>= 0)

Exception `Errno::EEXIST' at H:/ruby/lib/ruby/1.8/fileutils.rb:243 - File exists - H:\Documents and Settings\seb/.gem/specs/gems.github.com%80
Exception `IOError' at H:/ruby/lib/ruby/site_ruby/1.8/rubygems/format.rb:50 - closed stream
Exception `Errno::EEXIST' at H:/ruby/lib/ruby/1.8/fileutils.rb:243 - File exists - H:/ruby/lib/ruby/gems/1.8
Exception `Gem::InstallError' at H:/ruby/lib/ruby/site_ruby/1.8/rubygem /installer.rb:255 - jscruggs-metric_fu requires rcov (> 0.8.1, runtime)
ERROR:  Error installing jscruggs-metric_fu:
        jscruggs-metric_fu requires rcov (> 0.8.1, runtime)

gem install jscruggs-metric_fu works

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

>Comment By: Eric Hodel (drbrain)
Date: 2009-05-01 16:40

Message:
There's no rcov gem on the github source, so I don't know why you expect this to work.

The documentation states:

        --source URL                 Use URL as the remote source for gems

Which may not be clear, but implies that the flag overrides the default sources rather than appends to them.  If you can think of better wording, I will be glad to change it.

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

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25748&group_id=126


More information about the Rubygems-developers mailing list