Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Recognize package NAME VERSION #27

Open
Grinnz opened this issue Aug 3, 2020 · 2 comments
Open

Feature request: Recognize package NAME VERSION #27

Grinnz opened this issue Aug 3, 2020 · 2 comments

Comments

@Grinnz
Copy link

Grinnz commented Aug 3, 2020

It would be nice to be able to work with the package NAME VERSION syntax (either with or without the BLOCK), to provide and update versions in place declared in such a manner.

@karenetheridge
Copy link
Contributor

Sounds good to me!

Dist::Zilla::Plugin::BumpVersionAfterRelease::_Util contains the regexes that would need to be modified -- on first glance it should be pretty straightforward to just add a line to assign_re and matching_re.

@Ovid
Copy link

Ovid commented May 24, 2022

At a (very) quick glance, it looks like the versions are bound to \A, the front of the string. As a result, if you use this:

package My::Package {
    our $VERSION ...
    ...
}

The version is not found. I've had to rewrite a bunch of code based on this.

I'm just assuming that's what's causing this, as I use Dist::Zilla::Plug::PluginBundle::Starter::Git with managed_versions (which uses this module) to manage my versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants