Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest_specs contains nil gem #42

Open
hemmrich opened this issue Oct 10, 2016 · 3 comments
Open

Latest_specs contains nil gem #42

hemmrich opened this issue Oct 10, 2016 · 3 comments
Labels

Comments

@hemmrich
Copy link

hemmrich commented Oct 10, 2016

When indexing the ~730k gems on rubygems.org, the latest_specs.4.8.gz file contains a gem [nil, nil, nil]

irb code:

irb(main):049:0> require 'zlib'
irb(main):050:0> content = Marshal.load(Zlib::GzipReader.open('./latest_specs.4.8.gz').read)
irb(main):051:0> content.each do |elt|
irb(main):052:0> puts elt.inspect if elt[0].nil?
irb(main):053:0> end

output:

[nil, nil, nil]
@PierreRambaud
Copy link
Owner

Hi,

Can you try with rubygems.org/latest_specs.4.8.gz, this file is directly downloading from selected source (rubygems by default).

Regards

@hemmrich
Copy link
Author

Hey Pierre,

Using rubygems' specs files instead of those created by gemirro index resolves this issue.

Best,
Max

@PierreRambaud
Copy link
Owner

Hi,

Sorry I'm not able to reproduce, maybe there are missing check in this method:
https://github.com/PierreRambaud/gemirro/blob/master/lib/gemirro/indexer.rb#L181

If you have any idea?
Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants