Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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 ( [id://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 irc.perl.org 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! ;)
rjbs
  • 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"
      rjbs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-20 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found