Dist::...Release(3pm)
π NAME π
Dist::Zilla::Plugin::ReversionOnRelease β bestie, this is the plugin that bumps and reversions your $VERSION when you release. It lives in the Dist::...Release(3pm) page of the User Contributed Perl Documentation collection, and we're about to become sooo well acquainted π
β¨ SYNOPSIS β¨
[VersionFromModule]
[ReversionOnRelease]
prompt = 1
[CopyFilesFromRelease]
match = \.pm$
like. that's the whole vibe check. copy it, paste it, go off π
πΈ DESCRIPTION πΈ
okay so. This is a Dist::Zilla plugin that bumps version β a la perl-reversion -bump β in-place, on the .pm files chillin' inside lib. Not a copy, not a sidecar, the actual files. slay.
And lowkey the intended combo here is: use this plugin together with Dist::Zilla::Plugin::VersionFromModule, so that the current VERSION gets taken out of your main module β and then the released file gets written back after the release using Dist::Zilla::Plugin::CopyFilesFromRelease. it's a whole little relay race and every leg matters fr fr πβοΈ
Also! Unlike perl-reversion, this module uses Version::Next to get a more naturally incremented version, instead of the kinda strict 3-digit rules over in Perl::Version. so the numbers behave nicer, no cap.
π¨ bestie, listen to me: you should not use this plugin with any code munging plugins or any Pod::Weaver plugins. like, at all. don't do it. it's giving chaos π
By default, this plugin bumps the version by the smallest possible increase β so if you're sitting on 0.001, the next version is 0.002. cute, predictable, minimal.
Wanna override that? Two ways, pick your fighter:
- run the plugin with the
promptoption and just give it the desired value straight from the prompt - or set the environment variable
V
like so:
> V=1.001000 dzil release
iconic. she's got range π
π«Ά AUTHOR π«Ά
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
π COPYRIGHT π
Copyright 2013- Tatsuhiko Miyagawa
π LICENSE π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π SEE ALSO π
- Dist::Milla
- Version::Next
- Dist::Zilla::Plugin::BumpVersion
- Dist::Zilla::Plugin::RewriteVersion β also takes
$VERSIONfrom the main module; ensures all$VERSIONs are consistent - Dist::Zilla::Plugin::BumpVersionAfterRelease β edits the
$VERSIONin the repository code to reflect the new version, after release - Dist::Zilla::Plugin::RewriteVersion::Transitional β like
Dist::Zilla::Plugin::RewriteVersion, but munges the version in if it was not already present - Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional β like
Dist::Zilla::Plugin::BumpVersionAfterRelease, but also adds the$VERSIONinto the repository code if it was not already present
and that's the whole page bestie!! this one's running on perl v5.42.0, dated 2025-07-25, and it shipped as part of the Dist::...Release(3pm) manual in the User Contributed Perl Documentation. go forth and reversion responsibly π¦β¨π
π¦ where this page comes from
- fedora 43: perl-Dist-Zilla-Plugin-ReversionOnRelease 0.06-26.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms