Bugs item #28837, was opened at 2011-01-07 17:00 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=28837&group_id=126
Category: `gem` commands (other) Group: v1.4.x Status: Open Resolution: Accepted Priority: 3 Submitted By: Lee Jarvis (injekt) Assigned to: Ryan Davis (zenspider) Summary: `gem update` attempts to upgrade rubygems without using the --system flag Initial Comment: RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i686-linux] - INSTALLATION DIRECTORY: /home/injekt/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /home/injekt/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE DIRECTORY: /home/injekt/.rvm/gems/ruby-1.9.2-p136/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /home/injekt/.rvm/gems/ruby-1.9.2-p136 - /home/injekt/.rvm/gems/ruby-1.9.2-p...@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gemcutter.org"] - "gem" => "--no-ri --no-rdoc" - REMOTE SOURCES: - http://gemcutter.org Verbose output of `gem update` can be found attached. Even after running `gem uninstall rubygems-update`, this issue still occurs. ---------------------------------------------------------------------- >Comment By: Ryan Davis (zenspider) Date: 2011-01-09 14:52 Message: This _should_ (or at least could) be fixed on trunk. There are exactly zero tests for update --system but eric has a strategy for that so we'll get it patched up soon. In the meantime, manual verification would be great. Just to note: we can't do a damn thing about this bug being released in 1.9... so... yeah. ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2011-01-08 22:57 Message: OK. I have a repro, and this is indeed a bug: % gem uninstall -a rubygems-update % gem install rubygems-update -v 1.3.7 % gem update -V Extra notes: It doesn't actually update your system, as it fails before writing anything. It shouldn't be doing what it is doing regardless. We need to look into this asap. ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2011-01-08 22:21 Message: I just updated: https://github.com/rubygems/rubygems/blob/master/UPGRADING.rdoc with force downgrade instructions appropriate for 1.9.2 & rubygems 1.4.x. Without a working repro, I can't address this ticket and will prolly have to reject it. ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2011-01-08 22:19 Message: I can't repro this at all: % gem update -V Updating installed gems Nothing to update % gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [x86_64-darwin10.6.0] - INSTALLATION DIRECTORY: /Users/ryan/.rvm/gems/ruby-1.9.2-p136 - RUBY EXECUTABLE: /Users/ryan/.rvm/rubies/ruby-1.9.2-p136/bin/ruby - EXECUTABLE DIRECTORY: /Users/ryan/.rvm/gems/ruby-1.9.2-p136/bin - RUBYGEMS PLATFORMS: - ruby - x86_64-darwin-10 - GEM PATHS: - /Users/ryan/.rvm/gems/ruby-1.9.2-p136 - /Users/ryan/.rvm/gems/ruby-1.9.2-p...@global - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - "gemcutter_key" => "********************************" - REMOTE SOURCES: - http://rubygems.org/ ---------------------------------------------------------------------- Comment By: Lee Jarvis (injekt) Date: 2011-01-08 01:47 Message: Whoops! Didn't see that there. Attached. ---------------------------------------------------------------------- Comment By: Ryan Davis (zenspider) Date: 2011-01-07 23:24 Message: Not attached. Make sure you check that infernal checkbox. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=575&aid=28837&group_id=126 _______________________________________________ Rubygems-developers mailing list http://rubyforge.org/projects/rubygems Rubygems-developers@rubyforge.org http://rubyforge.org/mailman/listinfo/rubygems-developers