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

Another --mirror-only 02packages.details.txt parsing problem #194

Closed
brycebaril opened this issue Feb 5, 2013 · 6 comments
Closed

Another --mirror-only 02packages.details.txt parsing problem #194

brycebaril opened this issue Feb 5, 2013 · 6 comments

Comments

@brycebaril
Copy link

This is another carton-related issue triggered by the --mirror-only flag.

It looks like the fix for #188 may have broken parsing for a different class of pathological entries in the package details files:

02packages.details.txt

TimeDate                              undef  G/GB/GBARR/TimeDate-1.20.tar.gz

It looks like it may need to special case the string "undef" when choosing what the version is.

Searching TimeDate on mirror index /home/bryce/carton2/.carton/02packages.details.txt ...
Found TimeDate version  < 1.20.
Searching TimeDate on mirror http://cpan.metacpan.org ...
Downloading index file http://cpan.metacpan.org/modules/02packages.details.txt.gz ...
-> FAIL Finding TimeDate (1.20) on mirror http://cpan.metacpan.org failed.
Searching TimeDate on mirror http://backpan.perl.org ...
Downloading index file http://backpan.perl.org/modules/02packages.details.txt.gz ...
-> FAIL Finding TimeDate (1.20) on mirror http://backpan.perl.org failed.
-> FAIL Couldn't find module or a distribution TimeDate (1.20)
Searching Date::Format on mirror index /home/bryce/carton2/.carton/02packages.details.txt ...
@miyagawa
Copy link
Owner

miyagawa commented Feb 5, 2013

i think this is rather a bug in carton side which creates a bogus 1.20 requirement for a module/package that doesn't actually exist (TimeDate).

@brycebaril
Copy link
Author

This one might be a carton bug-- I ended up with the TimeDate requirement because my cpanfile requiring Date::Format -- that installs fine by installing TimeDate 1.20, but then the carton.lock file that is written as requiring TimeDate instead of Date::Format.

Subsequent installs using carton install based on the carton.lock file will look like this, i.e. they actually work but the return status is a failure:

Installing modules using cpanfile
! Couldn't find module or a distribution TimeDate (1.20)
Successfully installed TimeDate-1.20
1 distribution installed
Installing modules failed

@miyagawa
Copy link
Owner

miyagawa commented Feb 5, 2013

This is an unfortunate bug in the toolchain that creates a module "name" out of MYMETA which has the value of "TimeDate" which actually doesn't exist as a module/package.

There's a couple of modules that are known to provide such a bogus NAME, and carton should probably have to work around that.

@miyagawa
Copy link
Owner

miyagawa commented Feb 5, 2013

I reported this as a bug to TimeDate: https://rt.cpan.org/Public/Bug/Display.html?id=83141

but i will need to work around on carton level for modules like this.

@miyagawa
Copy link
Owner

miyagawa commented Feb 5, 2013

Should probably be addressed by Carton v.0.9_8

@brycebaril
Copy link
Author

Thanks! I'll try it out.

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

No branches or pull requests

2 participants