Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 ( #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
Node Status?
node history
Node Type: note [id://862966]
help
Chatterbox?
[marioroy]: It's a quoting issue inside qx. It's File::Find or qx. LA chooses qx. Almost there.
[marioroy]: Also \"%S\\\n\" oh my, not fun.
[Discipulus]: good night folks
[marioroy]: I will make a mp3info script that takes the -p "%S\n" args and test qx. I'm on the road, so will come back.
[marioroy]: All because File::Find is not fun for LA.
[marioroy]: good night Discipulus.
[Discipulus]: perl dreams to you all

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2017-04-23 21:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.