On 2012-02-24 23:53:48, FAYLAND wrote:
Show quoted text> but I want to avoid
>
> [DZ] attempt to add README multiple times; added by: @Filter/Readme
> (Dist::Zilla::Plugin::Readme line 39); ReadmeFromPod
> (Dist::Zilla::Plugin::ReadmeFromPod line 67)
> aborting; duplicate files would be produced at
> /Users/fayland/perl5/lib/perl5/Dist/Zilla/App/Command/test.pm line 27
>
> and I don't want to add
>
> remove = Readme
>
> is there a way to do it?
Every other FileGatherer plugin lives by the "just add the file; the user has to keep track of not
adding more than one." I think it is not a great idea to silently throw away other README
files. It will hide misconfiguration. It also means that your plugin is not acting like most
other plugins that do similar jobs.
Anyway: No, you can't easily avoid the rule above if you are just a FileGatherer. While you
could remove any README file you find when running, it wouldn't be effective if the other
README is added after you. (In practice, most users will have [ReadmeFromPod] later than
[GatherDir], but not all.)
Going to bed now. Good night!
--
rjbs