- DEFAULT TEST SET
- AVAILABLE TEST SET
- COPYRIGHT AND LICENSE
App::cpanm::meta::checker - Verify and sanity check your installation verses cpanm meta files
cpanm-meta-checker --all --verbose
cpanm installs a few auxiliary files:
These files describe several things, such as dependencies declared by upstream, and sniffed extra context.
This tool exists to read those files, and verify that their dependencies are still holding true, that no new conflicting dependencies have been installed and are silently sitting there broken.
cpanm's auxiliary files are really a prototype for what may eventually become a tool-chain standard, this tool is also a prototype for a tool-chain standard checker.
my @dirs = $checker->all_search_dirs
my @items = $checker->all_search_dir_child( 'some','path' );
Returns all paths in all
search_dirs that exist with the given name.
search_dirs = [ 'foo', 'bar' ] all_search_dir_child('baz') → foo/baz → exists(Y) → output → bar/baz → exists(N) → omitted
my @items = $checker->all_search_dir_children();
Returns all child nodes of all
search_dirs = ['foo','bar' ] all_search_dir_children() → ( path( 'foo' )->children, path( 'bar' )->children, )
Read the content from
./foo/bar/baz and check its consistency.
Read the meta-data for the exact release stated and perform checks on it.
Check meta-data for any
Note: There may be directories residual from past installs.
Check meta-data for all installed distributions.
Execute test mode defined by
This is the command interface invoked by
cpan-meta-checker that cherry picks options with
my $instance = App::cpanm::meta::checker->new( %constructor_defaults );
This creates an instance where
%constructor_defaults are overridden by relevant command line arguments.
distdirectories in alphanumeric order.
-A|--all- Check All distributions on the system
--verbose- Turn on extra verbosity
This presently just prepends the
listtest to the test list.
--test foo- Test only test
May be invoked multiple times to define all tests wanted.
--test check_develop_requires --test check_runtime_suggests
The tests to execute.
[ 'list_empty', 'list_duplicates', 'check_runtime_requires', 'check_runtime_recommends', 'check_runtime_suggests', 'check_runtime_conflicts', ];
Iteration order of
Defines execution mode:
list_empty list_duplicates check_runtime_requires check_runtime_recommends check_runtime_suggests check_runtime_conflicts
For now, it includes output about every instance where there are more than one set of meta files.
This occurs, because installing a new version of something doesn't purge the data ( or all the files ) of the old one.
This lists all distributions seen.
This lists distributions that have a directory for a meta file, but have no meta file in them. ( Rare )
This lists distributions that have meta files.
There is a check for each combination of:
PHASE: configure build runtime test develop TYPE: requires recommends suggests conflicts
Each checks the meta-data for conforming dependencies.
check_runtime_requires # Report Runtime requirements that are unsatisfied check_develop_requires # Report Develop requiremetns that are unsatisifed
Kent Fredric <firstname.lastname@example.org>
This software is copyright (c) 2017 by Kent Fredric <email@example.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.