开发者

What's the status of Meta 2 support in the Perl toolchain?

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

I'm thinking of including both a v2 META.json and a v1.4 META.yml. Tools that support Meta 2 should ignore META.yml when both are present. Tools that predate Meta 2 ough开发者_开发知识库t to be looking 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 tools like that? How common are they? Is this a good idea, or will it cause problems?


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

(after looking for something) I found out that there is one tool that uses META.json v1.4 and it's mine :). It's a program to add CPAN modules to Freshmeat, but I'll just rewrite it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜