I happened to notice this evening that in my CPAN distributions the file META.yml is not being updated when I prepare a new version for upload. For example, here's the META.yml for ExtUtils::ModuleMaker:

# http://module-build.sourceforge.net/META-spec.html
#XXXXXXX This is a prototype!!!  It will change in the future!!! XXXXX#
name:         ExtUtils-ModuleMaker
version:      0.44
version_from: lib/ExtUtils/ModuleMaker.pm
installdirs:  site
requires:
    File::Basename:                0
    File::Path:                    0
    File::Save::Home:              0.03
    Getopt::Std:                   0
    Test::More:                    0.44

distribution_type: module
generated_by: ExtUtils::MakeMaker version 6.17


EU::MM, however, is now up to version 0.49 on CPAN.

Now, I have taken a completely passive approach to the YAML file in my CPAN distributions. When I first started to contribute to CPAN, YAML files were not generated by ExtUtils::MakeMaker and nobody lost any sleep over them. At some point, I upgraded MakeMaker and found that it created META.yml with no intervention or prompting on my part, and that it also added META.yml to the MANIFEST with similar lack of intention on my part.

    META.yml            Module meta-data (added by MakeMaker)

None of my CPAN modules has failed to install, but I did notice a report from PAUSE tonight that indicated a YAML error for a different CPAN distribution:

               User: JKEENAN (James E Keenan)
  Distribution file: Perl6-Say-0.09.tar.gz
    Number of files: 17
         *.pm files: 2
             README: Perl6-Say-0.09/README
META.yml: META.yml found but error encountered while loading: YAML Error: Couldn't parse single line value
   Code: YAML_PARSE_ERR_SINGLE_LINE
   Line: 5
   Document: 1
 at /usr/local/perl-5.8.7/lib/site_perl/5.8.7/YAML.pm line 33

And, here too, it appears that the YAML file had not been updated since my first upload of it to CPAN.

I don't intend to lose any sleep over this ... but is there anything I can do to synchronize the content of META.yml with the rest of what's happening in a particular CPAN distro I'm preparing for upload?

Thank you very much.
Jim Keenan

Reply via email to