Re: [Module-build-general] More version info in META.yml
Status: Beta
Brought to you by:
kwilliams
|
From: <and...@an...> - 2003-03-30 21:03:57
|
>>>>> On Sat, 29 Mar 2003 23:44:52 -0600, Ken Williams <ke...@ma...> said: > Am I right that something like the following is what we're aiming for? > provides: > Foo::Bar: > file: Bar.pm > version: 0.12 > Foo::Bar::Baz: > file: lib/Foo/Bar/Baz.pm > version: ~ Yes, I think so. >> >> Problem is, it is not a tiny program but 2000+ lines long and probably >> not easy to follow and dissect. What do you suggest? > So, I started hacking my way through that code, slurping the relevant > bits into Module::Build::Base. It was going pretty well. But then I > got to the part where we try to figure out the version of each > package, and I nearly fainted. :) > Since this is a pretty hard and dangerous task, See, it's not dangerous per se, it's only dangerous on PAUSE. The META.yml file will only be generated on the developer's own box, so there's no need to protect from that sort of malicious code. > maybe we ought to really get it right and have it in a module. > Could we try to use Module::Info for this? Even if Module::Info > doesn't work correctly, maybe the best thing to do would be to fix > Module::Info. I believe that MakeMaker's parse_version does a pretty good job and Module::Info claims to follow MakeMaker's lead. > I'd just hate to spend a lot of time on this and have the code buried > in Module::Build, when this is exactly the kind of thing Module::Info > aims to do correctly. I'm agnostic on this question. -- andreas |