You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Pepijn Van Eeckhoudt (JIRA)" <ji...@apache.org> on 2010/03/17 10:04:27 UTC

[jira] Updated: (BUILDR-403) Buildr::Util::Gems.install does not find gems on remote sources

     [ https://issues.apache.org/jira/browse/BUILDR-403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pepijn Van Eeckhoudt updated BUILDR-403:
----------------------------------------

    Attachment: find_gem_specs.patch

> Buildr::Util::Gems.install does not find gems on remote sources
> ---------------------------------------------------------------
>
>                 Key: BUILDR-403
>                 URL: https://issues.apache.org/jira/browse/BUILDR-403
>             Project: Buildr
>          Issue Type: Bug
>          Components: Core features
>    Affects Versions: 1.3.5
>         Environment: Windows XP, JRuby 1.4.0, rubygems 1.3.6; not verified on other combinations
>            Reporter: Pepijn Van Eeckhoudt
>             Fix For: 1.4
>
>         Attachments: find_gem_specs.patch
>
>
> The gem installation code does not seem to be able to find gems on remote servers. The attached patch extracts the gem location code from install into a separate method and introduces two specs for this new method.
> On my configuration the 'locate remote gem' spec fails with the current trunk. Replacing the first statement of find_gem_specs with
> remote = dependencies.map{ |dep| Gem.source_index.search(dep).last || Gem::SpecFetcher.fetcher.fetch( dep, true ).map{ |spec, source| spec }.last }
> resolves the issue.
> This statement was distilled from the rubygems source code itself (see query_command). Discussions on mailing lists online seems to recommend the SpecFetcher class over the SourceInfoCache class (http://www.mail-archive.com/rubygems-developers@rubyforge.org/msg02087.html).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.