What is the Meta 2 support status in the Perl toolchain?

I'm going to release new versions of some of my modules , and I wonder what metadata files I should include in distributions, CPAN Meta Spec version 2 has been released, but I'm not sure how well it is supported right now in the Perl toolchain.

I am thinking of including both v2 META.json and v1.4 META.yml in it. Tools supporting Meta 2 should ignore META.yml if present. Tools that precede Meta 2 should look for META.yml.

The problem would be tools that prefer META.json to META.yml, but expect META.json to be in v1.x format. Are there any such tools? How common are they? Is this a good idea or will it cause problems?

+3
source share
1 answer

META.yml v1.4 can be read by various tools, META.json v2, AFAIK, is used only with search.cpan.org. Any distribution that uses Dist :: Zilla also has META.json v2, so you can use v2 without causing any problems, and I don't know any tool that expects META.json v1.4.

( -), , , META.json v1.4, :). CPAN Freshmeat, .

+2

Source: https://habr.com/ru/post/1773068/


All Articles