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

$VERSION is only incremented in the main module #123

Open
karenetheridge opened this issue Oct 13, 2016 · 1 comment
Open

$VERSION is only incremented in the main module #123

karenetheridge opened this issue Oct 13, 2016 · 1 comment

Comments

@karenetheridge
Copy link
Contributor

..most of the other modules have $VERSION = '0.02' or similar.

This can be fixed using dzil in a number of ways, depending on how you like to do your releases... The most minimal change would be to add this to dist.ini:

[RewriteVersion]
skip_version_provider = 1

... which would edit the version declarations in the shipped dist only (leaving the repo alone).

If you were interested in using [Git::Commit], [Git::Tag] and [Git::Push] to automate the updating of files that change on every release, I would recommend adding on [RewriteVersion] (without skip_version_provider set) plus [BumpVersion::AfterRelease] to edit the $VERSION declarations in the release and commit them back to the repository afterwards.

@karenetheridge
Copy link
Contributor Author

I saw you removed the $VERSION declarations in these files -- note that this change on its own, without additional changes to come, will result in the next release not indexing those modules, as their version will now be undef, which is lower than the last indexed version of 0.02 or 0.03. You'll need to insert a new $VERSION declaration into the file somehow -- either by reverting that commit, or using [PkgVersion] to insert the $VERSION lines at build time (which will cause a conflict with the existing declaration in the main module).

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

1 participant