Closed shlomif closed 6 years ago
Hi all! Why wasn't this pull-request merged (or at least dismissed with a useful comment yet)? Ping!
I don't see the advantage to add Dist-Zilla as new (build) dependency. Module-Install just works and does everything we need.
@sni: hi! Sorry for the late reply. Some of the advantages of Dist-Zilla over Module-Install:
Ability to generate a META.json file.
Module-Install has become abandoned and unmaintained.
Module-Install will break with upcoming perl 5's that will remove .
from the installation path by default.
Module-Install plugins are hard to figure out and install.
Dist-Zilla is not required to install the distribution from CPAN, just to build from the VM.
I just tried to this PR.
It fails to build the module:
[DZ] beginning to build Monitoring-Plugin
[DZ] guessing dist's main_module is lib/Monitoring/Plugin.pm
[@Filter/ExtraTests] rewriting author test xt/author/pod-syntax.t
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/Config.pm"
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/ExitResult.pm"
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/Getopt.pm"
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/Performance.pm"
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/Range.pm"
[RewriteVersion] Skipping: no "our $VERSION = '...'" found in "lib/Monitoring/Plugin/Threshold.pm"
[DZ] attempt to add META.yml multiple times; added by: filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by @Filter/GatherDir (Dist::Zilla::Plugin::GatherDir line 226); text from coderef added by @Filter/MetaYAML (Dist::Zilla::Plugin::MetaYAML line 70)
aborting; duplicate files would be produced at /home/sven/perl5/lib/perl5/Dist/Zilla/App/Command/build.pm line 75.
The tests also fail.
I am a bit worried about pulling in a new dependency which itself has so many depencencies. It even requires Moose just to build a module.
But so far i don't see any advantage besides being more modern.
This is done as part of the pull-request challenge. Module-Install is undermaintained and unloved.