-
Notifications
You must be signed in to change notification settings - Fork 41
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
Previous version gives Next version #84
Comments
Hi, so, as explained in the README, the
|
But it gave me the next version, not the previous one. |
Let me see if I understand this one now. The -previous-version, will use the previous version to increment and give you the next version?
|
The rewrite makes it a little more difficult to support automatic versioning.
|
yes, it's the whole purpose of this project ;-) if you just want to get the "previous" (or current) version, you can just read it from your file ;-) or if you want to use this tool, we can introduce a new no-op strategy to bump the version which does nothing, and so return the previous version |
yes. well in fact the default strategy to read the previous version is bit smarter than "from-tag", because it knows how to handle a git repo with no tags, but you get the idea. by default it finds the latest git tag, increment it, and print the next version. |
that's because you don't follow the "trunk-based development" practice, and you want to support multiple release branches - which is not the main goal of this tool. however, as I explained, you can use the git tag filter feature to achieve what you want. right now in each release branch you keep what you call the "base version" in your build.gradle file. Instead (or in addition), you can update your release script to include the right prefix - something like an alternative would be to add a new strategy - |
I'd like to be able to specify the previous version manually with It does not seem possible ATM, the default
Opened #113 to allow generating a semantic next version without any tag, commits or even repository. |
Have version
1.5.0
inbuild.gradle
Is this the alternate universe where things are reversed?
On branch master, where the latest git tag is
v1.6.3
There is no previous tag
v1.6.4
Expected output:
1.6.4 and 1.6.3
The text was updated successfully, but these errors were encountered: