Dist::Zilla::Plugin::SyncCPANfile - Sync a cpanfile with the prereqs listed in dist.ini
version 0.04
# in dist.ini [SyncCPANfile] # configure it yourself [SyncCPANfile] filename = my-cpanfile comment = This is my cpanfile
Unlike Dist::Zilla::Plugin::CPANFile this plugin does not add a cpanfile to the distribution but to the "disk".
With this config you can change the filename for the file. It defaults to cpanfile.
[SyncCPANfile] filename = my-cpanfile
The default comment says, that the cpanfile was generated by this plugin. You can define your own comment.
[SyncCPANfile] comment = This is my cpanfile comment = line 2
When cpan_audit is enabled, the required module version is not defined (or 0), and the module has vulnerabilities, the "fixed version" storied in CPAN::Audit is used as a minimum version.
[SyncCPANfile] cpan_audit = 1 [Prereqs] ExtUtils::MakeMaker = 0
ExtUtils::MakeMaker has a vulnerability in versions <= 7.21. As the minimum version in the dist.ini is 0 and cpan_audit is enabled, the cpanfile will use 7.22 as the minimum version (as of June 2023).
As this depends on the CPAN::Audit database, you should update CPAN::Audit regularly.
For dependencies where a minimum version is defined and the defined version is vulnerable a warning is shown.
Dist::Zilla::Plugin::CPANFile, Dist::Zilla::Plugin::GitHubREADME::Badge
Renee Baecker <reneeb@cpan.org>
This software is Copyright (c) 2021 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Dist::Zilla::Plugin::SyncCPANfile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::SyncCPANfile
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::SyncCPANfile
For more information on module installation, please visit the detailed CPAN module installation guide.