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: Chad Woolley (thewoolleyman)
Date: 2009-05-01 17:04
Message:
Here is a discussion Eric and I had (based on Josh Susser's idea) to make this
less confusing. I don't think there's a specific feature in the tracker, if
someone wants to create it...
me: also having the --source option override any default or definition in
.gemrc is annoying. Was talking with Josh Susser about it.
eric.hodel: that's what it's for
"no, I really want this"
6:30 PM if I change my mind on it, then people will complain for the opposite
reason :/
me: but that is not intuitive. I was thiniking to have have
--[no-]use-configured-sources, with
--use-configured-sources being the default.
eric.hodel: that could work
me: so --source option would be additive by default
----------------------------------------------------------------------
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
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers