This project is archived and is in readonly mode.
gem install fails when a gem requires multiple sources
-
Matt Jones
This is not a correct behavior - we don't want to be hardcoding gem server locations. It's actually a known issue in RubyGems, not Rails. The correct thing to do here would be to extract all of the gem sources that Rubygems knows about and add them all to the string - maybe you'd be interested in writing that patch?
I'd also point out that the :source option is only required if the user doesn't have gems.github.com added as a source globally; that's a lot more likely now than it was, say, a year ago.
-
Mike Perham
Agreed that this is a RubyGems bug. I'll write the patch if I have some free time soon.
-
Mike Perham
Patch to add all Gem.sources to cmd line.
-
CancelProfileIsBroken
- Tag changed from gem to bugmash, gem
-
Erik Ostrom
+1 verified the behavior, the test, and the patch. Seems like this is a good workaround for a failing in RubyGems.
-
Elise Huard
+1 verified.
-
Matt Jones
The patch looks reasonable, but there's one case I'm a little concerned about: what if there's a gem name collision between the various pre-configured servers? In other words, gems.rubyforge.org has a gem named SomeGem, and another server also has one with the same name (potentially different versions; possibly even different authors).
The Rubygems interpretation of --source will allow a user to disambiguate which one they mean, but this patch removes that functionality. Maybe an :exclusive_source option would be handy as well?
-
Rizwan Reza
- State changed from new to wontfix
- Tag changed from bugmash, gem to gem
I think this is out of question as Rails 3.0 is using Bundler (or Bubble).
