Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: A few problems with new Dist::Zilla (from 2.x to 4.x)

by rjbs (Pilgrim)
on Oct 01, 2010 at 12:59 UTC ( #862966=note: print w/ replies, xml ) Need Help??

in reply to A few problems with new Dist::Zilla (from 2.x to 4.x)

The PruneCruft thing was unfortunate. The purging of ~ files had gone in over my mild objections (I can't complain too much, I did the merge), and was then removed later when there were other objections that made me feel better about my own. It should be easy to add an "also" to PruneCruft (like except, but backward) or "patterns" to PruneFiles. I think someone has probably got a plugin to do what you want, but I'm not sure. #distzilla on might know.

Files in bin/* don't strictly need a package declaration, but some things will expect them, like PodWeaver. You can just add the package -- which is what I do -- or you can change the FileFinders used by PodWeaver to only include :InstallModules and not :ExecFiles. #distzilla could also provide more step-by-step help, I think. I believe Marcel G. recently did just this change, so @MARCEL might have the change in it.

If PodVersion is finding =head1 VERSION that DZ added, it sounds like maybe you're using PodVersion -and- PodWeaver. The latter makes the former unnecessary.

Let me know if this is all unhelpful! ;)

Comment on Re: A few problems with new Dist::Zilla (from 2.x to 4.x)
Replies are listed 'Best First'.
Re^2: A few problems with new Dist::Zilla (from 2.x to 4.x)
by dgaramond2 (Monk) on Oct 02, 2010 at 02:25 UTC
    Thanks for the answers.

    If you use PodWeaver and add 'package main' to all bin/* files, how do you avoid creating '=head1 NAME main' for all the files?

    (Should perhaps ask in irc, but got to go offline now...)

      I don't actually use "main," I give them names that match the program name, or are very close. For example, I believe that the "cronjob" program in App::Cronjob has "package cronjob"

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://862966]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2015-11-29 21:50 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls