Michael G Schwern wrote:
On Fri, Oct 17, 2003 at 10:36:25AM -0700, Stas Bekman wrote:

Michael, any idea why the default behavior is to always overwrite META.yml? As more projects will start maintaining it, they all will have to specify NO_META. Shouldn't it be the opposite: overwrite only if explicitly told to?


Hmm, this is the first I've noticed of this conversation so I don't know
the context.

There is no much context besides my question ;)


[...]

If that's the case, then OK we can use NO_META. But I think just like Makefile is moved to Makefile.old, the old META.yml should at least be moved to META.old when overwritten and may be a warning issued?


Having META.old might be useful, like "make manifest". But a warning would just be an annoyance as META.yml is overwritten as part of normal operation.
It can't tell the difference between a MakeMaker generated META.yml and a
user generated one.

If the idea I suggested in the other reply (don't add META.yaml to MANIFEST but add it to the distro transparently) is adopted, then it'd make sense to do the warning only if MANIFEST lists META.yaml, which means that someone maintains META.yaml, but forgot to set NO_META.


Besides why NO_META? Does it say that I don't want META, or does it mean that I don't want META.yaml to be auto generated? Is it too late to choose a more sensible name? e.g. NO_META_GENERATE?

More to the point, what's the real issue here?

Did you edit META.yml by hand and forget to set NO_META and find your
changes lost in the next version?  In this case maybe a little "this
file was created by MakeMaker: do not edit" in the META.yml might make
sense.

This is definitely a good idea.


No I haven't lost anything yet, I was just planning for the future.

> Also, what is/isn't MakeMaker doing that you need to maintain META.yml
> yourself?

In mod_perl we want to manually maintain META.yaml so we can control what's indexed and what's not. Remember the 'private'/'public' META keys I was lobbying for? That's where they kick in. mod_perl 2 includes a complete bundle of Apache::Test which has its own life on CPAN, so we want to mark it as private, so we need to maintain META.yaml manually.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to