-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
Hotfix-finish must not increment develop snapshot version #267
Comments
I just step into the same issue. A quick glance at the code shows that GitFlowHotfixFinishMojo erroneously udpates dev version instead of keeping the current one. Proposed PR seems a valid fix for this issue. |
I see no other use-case than the one described by @mzatko, as hotfix increases patch number (1.5.0 -> 1.5.1), so there is no need to increase dev version that already uses 1.6.0-SNAPSHOT. I do not see the point to increase a dev version that already must be > to hotfix version, but maybe I miss a point ? Maybe this proposal clashes with the use-case where
|
I read again PR proposal, and from my point of view, there is effectively different behavior expected based on I add a comment on @mzatko proposal on a way to correctly handle both cases. @aleksandr-m can you give it a sight to confirm that it is the correct way to fix this issue in a way that handles all expected behavior ? |
I think the main problem in @vkuragin's example is the way of versions numbering he uses. There is last(least-significant) number in version used for both releases and hotfixes versions... I would personally prefer just to set:
means switch to "standard" version numbering |
@aleksandr-m great, thank you! |
Snapshot version is incremented after hotfix-finish.
develop = 1.6.0-SNAPSHOT
master = 1.5.0
after hotfix-start/hotfix-finish (hotfix-1.5.1 is created) develop version is incremented to 1.6.1-SNAPSHOT which is not correct
This bug report looks like opposing #211 but it is not. Scenario described there is not hotfix but new release in fact. Creating version 1.0.6 from snapshot 1.0.6-SNAPSHOT is releasing not hotfixing and hotfix-start/hotfix-finish just should not be used in the scenario.
The text was updated successfully, but these errors were encountered: