Re: MYMETA Files Not Getting Packed

Leon Timmermans <[email protected]> Thu, 6 Sep 2012 23:15:58 +0200
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <CAHhgV8gJbdhSXaLKxG3LV1K-X01dNWmmBZ29J-mwdRQw2s2GWg@mail.gmail.com>
On Thu, Sep 6, 2012 at 11:12 PM, John M. Gamble <[email protected]> wrote:
> Are MYMETA.yml and MYMETA.json not meant to be part of a perl package? I
> admit to adding them to the MANIFEST without considering it. What I found
> more interesting is that the MYMETA files were not included in the
> package.

This is very much deliberate. MYMETA *must* be generated during the
=C2=ABperl Build.PL=C2=BB phase. Adding them to the distribution is at best
useless, and at worst actively harmful.

> I'm assuming this is an out-right error -- even if the MYMETA files are
> unnecessary, their presence in the MANIFEST file should at least merit a
> warning, right?

Maybe. I think that's a matter for ExtUtils::Manifest, not
Module::Build, though.

Leon