Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2018-06-24 13:36 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.