NAME

Dist::Zilla::Plugin::DBIO::LicenseFile - Check the committed LICENSE against the license the dist is meant to carry

VERSION

version 0.900007

DESCRIPTION

Part of the [@DBIO] bundle, which always adds it. It generates nothing: the LICENSE is a committed file that Dist::Zilla::Plugin::Git::GatherDir gathers like any other tracked file, and this plugin, a subclass of Dist::Zilla::Plugin::LicenseFile, only checks the gathered file after the gathering is done. A missing or deviating LICENSE aborts the build with a message that names the file and what is wrong.

Without heritage the behaviour is the parent's: the gathered LICENSE must be the license text of the distribution as Dist::Zilla declares it (for [@DBIO]: Perl_5 with the copyright holder and year of the dist). Run dzil genlicense and commit the result when it is out of date.

With heritage = 1 the expected text is a fixed one, held in this module: the notice that DBIO is a fork of DBIx::Class followed by the original DBIx::Class license, exactly the LICENSE the heritage repositories commit (413 lines). The gathered file must equal it, apart from trailing whitespace at the end. Copyright holder and year of the dist play no part here. A deviating text is fixed by copying the LICENSE from DBIO core, not by dzil genlicense.

ATTRIBUTES

heritage

Boolean. Expect the fixed DBIx::Class heritage text instead of the license generated from the dist. The bundle passes its own heritage option. Default: 0.

METHODS

heritage_text

Class or object method. Returns the fixed heritage license text.

wanted_text

The text the gathered LICENSE is compared against: the heritage text when heritage is set, otherwise whatever the parent class expects.

AUTHOR

DBIO Authors

COPYRIGHT AND LICENSE

Copyright (C) 2026 DBIO Authors

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.