- SEE ALSO
- COPYRIGHT AND LICENSE
Dist::Zilla::Plugin::Git::DescribeVersion - Provide version using git-describe
In your dist.ini:
[Git::DescribeVersion] match_pattern = v[0-9]* ; this is the default
This performs the Dist::Zilla::Role::VersionProvider role. It uses Git::DescribeVersion to count the number of commits since the last tag (matching match_pattern) or since the initial commit, and uses the result as the version parameter for your distribution.
You can also set the
V environment variable to override the new version. This is useful if you need to bump to a specific version. For example, if the last tag is 0.005 and you want to jump to 1.000 you can set V = 1.000.
$ V=1.000 dzil release
Note: Since Git::DescribeVersion appends the third part to a two-part version tag (for example, a tag of
v1.2.35) This plugin is not designed to be combined with Dist::Zilla::Plugin::Git::Tag (which will tag the repo with the generated version).
Instead it works better with manual tags. For example, you might manually increase the minor version (from
v1.3) when a big feature is added or the API changes. Then each build will append the number of commits as the revision number (
This is probably more useful for projects without formal releases. This is in fact the only way that the author still uses the module: For
$work projects where builds are deployed often to a variety of internal environments.
You can find documentation for this module with the perldoc command.
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites please use your favorite search engine to discover more resources.
The default CPAN search engine, useful to view POD in HTML format.
RT: CPAN's Bug Tracker
The RT ( Request Tracker ) website is the default bug/issue tracking system for CPAN.
The CPAN Ratings is a website that allows community ratings and reviews of Perl modules.
The CPAN Testers is a network of smokers who run automated tests on uploaded CPAN distributions.
CPAN Testers Matrix
The CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
CPAN Testers Dependencies
The CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
Please report any bugs or feature requests by email to
bug-dist-zilla-plugin-git-describeversion at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dist-Zilla-Plugin-Git-DescribeVersion. You will be automatically notified of any progress on the request by the system.
git clone https://github.com/rwstauner/Dist-Zilla-Plugin-Git-DescribeVersion.git
Randy Stauner <firstname.lastname@example.org>
This software is copyright (c) 2010 by Randy Stauner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.