David Golden <[EMAIL PROTECTED]> wrote: > It's not so simple a change. The Makefile.PL gets generated by > "distmeta", which "distdir" depends on. "distmeta" also generates > README and META.yml. > > I tend to run distmeta before checking in a release, so I have exactly > the Makefile.PL, README, and META.yml that get packaged up and uploaded > to CPAN. > > I don't think anything that could clobber files should be switched on by > default. That's just asking for trouble.
Well it would only clobber the file if it contained the "auto-generated" line, so I think that's safe, but if you want to be *really* paranoid, how about having the dist actions fail if you havent specified a "create_makfile_pl" arg? (one of the exsitng ones or "skip"). That way CPAN etc would not be affected (since they don't run the 'dist' action), but module developers would be forced to specify the create_makefile_pl action before they uploaded a new release. I see "maintaining both your own Build.PL and Makefile.PL" as a bit of an edge case (not to mention a maintainer's nightmare), but there's gotta be a way we can both support it and make the default Module::Build behaviour friendly towards the CPAN.pm that's shipped with perl. - Tyler