Eriond has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I've just got a few questions as to why my CPAN tests are failing. I've tried to reproduce the issue locally, on multiple machines, but I always get a pass.
http://search.cpan.org/~adamdh/WWW-Shopify-0.11/
It seems to do with DBIx::Schema not loading all my DBIx::Result classes, but for the life of me, I can't think why this could be, considering it passes everything on my systems perfectly fine, even after I've removed all the installed versions of the module.
Any ideas?
P.S. Also, if anyone can tell me why the no_index directive in my META.json isn't doing what I thought it was supposed to do (remove a lot of my modules in that package from the module list), it'd be much appreciated.
Thanks,
Adam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CPAN Tests Failing
by toolic (Bishop) on Mar 20, 2013 at 15:25 UTC | |
I've tried to reproduce the issue locally, on multiple machines, but I always get a pass.Please confirm that you tried installing this from CPAN yourself and what method you used. I tried installing it, and I noticed some warnings:
When I click on a link from the MANIFEST for MYMETA.json, I get this error:
I'm not saying that is the root of your problem, but that does seem strange. | [reply] [d/l] [select] |
by tobyink (Canon) on Mar 20, 2013 at 15:36 UTC | |
Indeed; this isn't related, but it's still a problem. MYMETA.(yml|json) should not be bundled with the distribution, and should not be listed in MANIFEST. q.v. What are the files in a CPAN distribution?
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] |
by Corion (Patriarch) on Mar 20, 2013 at 15:28 UTC | |
I don't know about the current state of art regarding module metadata, but I think the MYMETA.* files are not supposed to be redistributed at all. They seem to be generated whenever Makefile.PL is run and record the (then) current state of affairs. ... but still, when doing local tests by using make disttest, these warnings should appear and be eliminated. | [reply] [d/l] [select] |
|
Re: CPAN Tests Failing
by blue_cowdawg (Monsignor) on Mar 20, 2013 at 15:34 UTC | |
Here's a full dump of what I get when I do: perl -MWWW::Shopify::Model::DBIx::Schema: I did this by sitting at the top of the blib directory in your build. When I search for the offending module, where is what I see: Is it possible you missed something in your manifest file? Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg | [reply] [d/l] [select] |
by tobyink (Canon) on Mar 20, 2013 at 16:01 UTC | |
I concur. There actually seem to be a few missing:
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] |
by Eriond (Novice) on Mar 20, 2013 at 19:51 UTC | |
Ah. You guys are 100% right, it was indeed the manifest. Silly of me to miss it really. I guess I just got caught up over the Model::Shop thing and didn't actually just think about what's been changing recently. Thanks very much for solving my problem. Really appreciate it. | [reply] |
|
Re: CPAN Tests Failing
by tobyink (Canon) on Mar 20, 2013 at 15:26 UTC | |
As I understand it, if your META file contains a "provides" section, the CPAN indexer doesn't do its normal file crawling to figure out what packages are contained within your release - it just trusts whatever is in "provides". Thus the "no_index" bit is basically a no-op.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
| [reply] |
|
Re: CPAN Tests Failing
by blue_cowdawg (Monsignor) on Mar 20, 2013 at 15:12 UTC | |
What's failing and how? Show the test results that show a failure so we have something to discuss... Peter L. Berghold -- Unix Professional Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg | [reply] |
by toolic (Bishop) on Mar 20, 2013 at 15:16 UTC | |
All are at: http://matrix.cpantesters.org/?dist=WWW-Shopify+0.11 | [reply] |