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
The distribution is contained in a Git repository, so simply clone the repository
$ git clone git://github.com/perlservices/Dist-Zilla-Plugin-SyncCPANfile.git
and change into the newly-created directory.
$ cd Dist-Zilla-Plugin-SyncCPANfile
The project uses Dist::Zilla
to
build the distribution, hence this will need to be installed before
continuing:
$ cpanm Dist::Zilla
To install the required prequisite packages, run the following set of commands:
$ dzil authordeps --missing | cpanm
$ dzil listdeps --author --missing | cpanm
The distribution can be tested like so:
$ dzil test
To run the full set of tests (including author and release-process tests),
add the --author
and --release
options:
$ dzil test --author --release
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)