Project

General

Profile

Actions

Bug #5420

closed

RubyGems misleading error message for "update -l"

Added by rklemme (Robert Klemme) about 13 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2p290 (2011-07-09 revision 32553) [i386-cygwin]
Backport:
[ruby-core:40022]

Description

I accidentally used option -l for "update":

11:00:34 ~$ gem19 list -l facets

*** LOCAL GEMS ***

facets (2.9.1)
11:00:44 ~$ gem19 update -l
Updating installed gems
Updating facets
ERROR: While executing gem ... (Gem::GemNotFoundException)
Could not find a valid gem 'facets' (>= 0) locally or in a repository
11:01:15 ~$

The issue is with "... or in a repository": apparently the repository was not even searched because without "-l" it works:

11:01:15 ~$ gem19 update
Updating installed gems
Updating facets
Successfully installed facets-2.9.2
Gems updated: facets
Installing ri documentation for facets-2.9.2...
Installing RDoc documentation for facets-2.9.2...
11:03:56 ~$ gem19 list -l facets

*** LOCAL GEMS ***

facets (2.9.2, 2.9.1)
11:04:21 ~$

Updated by ayumin (Ayumu AIZAWA) almost 13 years ago

  • Assignee set to drbrain (Eric Hodel)
Actions #2

Updated by shyouhei (Shyouhei Urabe) almost 13 years ago

  • Status changed from Open to Assigned

Updated by drbrain (Eric Hodel) about 12 years ago

  • Category set to lib
  • Target version set to 2.0.0

=begin
It seems this has been fixed.

$ GEM_HOME=~/tmp/gems/ GEM_PATH= ruby20 -Ilib bin/gem update -l builder
Updating installed gems
Updating builder
Fetching: builder-3.1.4.gem (100%)
Successfully installed builder-3.1.4

=end

Updated by drbrain (Eric Hodel) about 12 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0