Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Dist::Zilla + plugins version information in generated distribution

by sedusedan (Monk)
on Nov 12, 2013 at 07:08 UTC ( #1062126=perlquestion: print w/replies, xml ) Need Help??

sedusedan has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

To those using Dist::Zilla, do you record the versions of Dist::Zilla and all involved plugins when you build your distribution? If yes, where do you record it? I'm thinking of adding a file log dzil.log or something to record this and include the file in the generated tarball. Is there a plugin already for this?

This helps when debugging and rebuilding, since plugins often have bugs and generate buggy stuffs that need to be regenerated using newer versions of the plugins. A particular example is Dist::Zilla::Plugin::Test::Compile which generates t/00-compile.t which, reportedly, sometimes hangs on Windows. Version 0.33 of the module fixes this.

It would probably be useful to write more information during building to the proposed dzil.log.

  • Comment on Dist::Zilla + plugins version information in generated distribution

Replies are listed 'Best First'.
Re: Dist::Zilla + plugins version information in generated distribution
by Haarg (Curate) on Nov 12, 2013 at 09:29 UTC
    Dist::Zilla includes the MetaConfig plugin to do exactly this. It includes the version of Dist::Zilla as well as all of the plugins used in the META.json/META.yml files.

      Thanks, Haarg.

      I am currently not producing META.* for my non-CPAN distributions, last time I checked there were some problems like invalid license. I should probably resolve those issues so I can return producing distmeta files for those dists.

      Also I'd like to dump Pod::Weaver plugins information. Perhaps I'll add a plugin for that.

        I have now back on producing META.{json,yml} for non-CPAN dists, and I have just uploaded Dist::Zilla::Plugin::MetaConfig::PodWeaver to dump Pod::Weaver config under its own config. Now waiting for someone to suggest a more proper way (like patching or injecting or convincing Dist::Zilla::Plugin::PodWeaver to dump the same configuration).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1062126]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2020-11-29 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?