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

[Bug] Wrong version on Mainline with tag #2610

Closed
Gaurav-Puri101187 opened this issue Feb 28, 2021 · 5 comments
Closed

[Bug] Wrong version on Mainline with tag #2610

Gaurav-Puri101187 opened this issue Feb 28, 2021 · 5 comments
Labels

Comments

@Gaurav-Puri101187
Copy link

Gaurav-Puri101187 commented Feb 28, 2021

Describe 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):
@asbjornu
Copy link
Member

asbjornu commented Mar 1, 2021

If you tag 1.0.0 instead, do you see the same behavior? I know GitVersion has had problems in scenarios where tags are lower than 1.0.0.

@Gaurav-Puri101187
Copy link
Author

Gaurav-Puri101187 commented Mar 2, 2021

No,, when i Tagged as 1.0.0.. the next calculated version is 1.0.0 which is correct
Similarly behavior seems to be fine when i tagged 0.1.1 the next version calculated was 0.1.1 which is correct

@DmytroSokhach
Copy link

Facing the same issue. "next-version" got broken.

How do I install older version of gitversion?
My collegue has 5.0.1+Branch.master.Sha.c71b8fc9f6d7b6adffe82fef588e717beb864e91 and it works fine for him.

@asbjornu asbjornu changed the title [Bug] [Bug] Wrong version on Mainline with tag Mar 17, 2021
@asbjornu
Copy link
Member

I don't think this bug is related to next-version, @DmytroSokhach as @Gaurav-Puri101187 is using git tag. Sounds like you're experiencing #2441 instead, which is remedied by removing next-version and adding a git tag instead.

@DmytroSokhach
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants