[Bug] Wrong version on Mainline with tag
See original GitHub issueDescribe the bug I Was testing GitVersion for the Mainline Mode. I tagged my latest commit to 0.1.0 After tagging i used command gitversion /config on my main branch. The next calculated version i get was 0.1.4(based upon my prev commits)
Expected Behavior
Expected behavior is that next calculated version should have been 0.1.0 as i have explicityly tagged Another interesting behavior was when i tagged as 0.1.1 then next calculated version was 0.1.1
Actual Behavior
Calculate Version becomes 0.1.4
Possible Fix
Steps to Reproduce
Context
Your Environment
- Version Used:
- Operating System and version (Windows 10, Ubuntu 18.04):
- Link to your project:
- Link to your CI build (if appropriate):
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why does checking out a git tag bring the wrong version of ...
1 Answer 1 ... The problem is the -b option. ... This means that you're creating a new branch called tagname . Since...
Read more >Configuration
If you are using next-version and are experiencing weird versioning behaviour, please remove it, create a git tag with an appropriate version number...
Read more >How to use GitVersion to get sensible versioning
As you can see the hotfix version is 1.2.* but in your example it is 1.1.1-beta.1+1. Should I still merge and tag the...
Read more >Patterns for Managing Source Code Branches - Martin Fowler
I define a codeline as a particular sequence of versions of the code base. It can end in a tag, be a branch,...
Read more >Religion and Intimate Partner Violence: Understanding the ...
For conservative Protestant pastors who are quite willing to label violence as sinful and wrong behavior but reticent about working with those outside...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@asbjornu thank you for fast reply! Indeed was using Mainline and next-version, after updating to 5+ didn’t notice the moment when it stopped working. Adding tag to particular commit in master did it’s job.
I don’t think this bug is related to
next-version
, @DmytroSokhach as @Gaurav-Puri101187 is usinggit tag
. Sounds like you’re experiencing #2441 instead, which is remedied by removingnext-version
and adding agit tag
instead.