-
Notifications
You must be signed in to change notification settings - Fork 653
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
New tag is ignored if the older +semver: suggests higher version #3071
Comments
Another view:
This is the problem, I guess:
Those multiple versions are (1) old When considering these two, new tag should win. |
It is by design that the highest possible version number will be used, not the latest. |
Yes, but this applies to conflict resolution, when there are mutliple possible version candidates. However, if there is one single specific Now, adding a simple Why? This behavior is not only inconsistent, it also does not make any sense. |
I agree this doesn't make much sense. Since the change in behavior around this can be seen as a breaking change, we may want to change this in |
fix #3071 consider commit messages since latest tag only
🎉 This issue has been resolved in version 5.10.3 🎉 Your GitReleaseManager bot 📦🚀 |
That was indeed a breaking change for us 🥲 Upgraded from 5.9 to 5.12 and suddenly version calculation skyrocketed from 2 seconds to 39. I've bisected it to 5.10.1 - 5.10.2 update, and thankfully diff was small. |
@gbtb, I'm glad you figured out a fix and thankful that you reported it back here. 🙏🏼 |
You guys sure this behavior is as intended? I've pinned down our sudden versioning issues to this PR #3078. We have a tag v4.11.0 which was our last release. Previously to this change our builds on master/main produced this output:
now this comes out:
For the release/4.12.0 branch the second behavior is correct, but not for a master/main build. |
Describe the bug
Series of
+semver:
commit messages bumps version up to next major, e.g.2.0.0
.Explicit tag says
1.1.0
.Next commit still suggests
2.0.0
Expected Behavior
Explicit tag should take priority over the messages in commit history.
Tag should reset the calculation of the version from message history before the tag.
Latest tag should be considered new baseline, and only messages in commit history following the tag should be considered.
Actual Behavior
Tag is ignored completely, and
+semver:
commit history wins.Possible Fix
Ignore commit history before the tag.
Steps to Reproduce
Context
Message in commit history suggested bumping the major version.
This is later considered as mistake.
History is written, and its rewrite is not possible.
Explicit tag is used to reset/baseline the automated version calculation.
Your Environment
Windows 10
GitVersion 5.9.0
The text was updated successfully, but these errors were encountered: