-
Notifications
You must be signed in to change notification settings - Fork 652
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
Pre-release label in git tag #1600
Conversation
The reason for the observed incorrect version number is that GitVersion is somehow sensitive to tags that are of the form I see that the chosen versioning strategy is correct. however, this part of the code causes an incorrect version increment, even though it is set to Any thoughts? |
Thanks for digging into this, @ruhullahshah. I'm a bit confused, since the tag should only take presedence if it is on the current commit. For the test case in this PR, there is a commit after the tag |
Aha, I was caught yet again by the naming confusion discussed in #1054. I instinctively think of |
Also, when thinking of how the test is formulated and #1255 (comment), isn't |
ebe5e47
to
205ef81
Compare
Nope, I still think |
Your questions are valid and relate more to the specifications and usage of GitVersion. It "might" be true that in this particular case, GitVersion is abused. However, I would like to demonstrate the general problem with a simpler test case: [Test]
public void ShouldProvideTheCorrectVersionEvenIfPreReleaseLabelExistsInTheGitTag()
{
using (var fixture = new EmptyRepositoryFixture())
{
fixture.Repository.MakeACommit();
fixture.ApplyTag("1.0.0-oreo.1");
fixture.BranchTo("develop");
fixture.Repository.MakeACommit();
fixture.AssertFullSemver("1.1.0-alpha.1");
}
} This simple test fails due to the presence of a Is there some documentation, that talks about GitVersion and its assumptions on naming conventions of a |
16d7b9e
to
aca64b5
Compare
Great point, @ruhullahshah. I've added your test to this PR as further proof that something needs to be done about this. I'm just not sure what. |
aca64b5
to
8ee6c47
Compare
8ee6c47
to
520996b
Compare
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions. |
094d7c2
to
94fb47b
Compare
9801764
to
b7a7608
Compare
94fb47b
to
ac2d626
Compare
ac2d626
to
9851b43
Compare
Closed in favor of #3445 |
Rebase and conflict resolvement of #1261. Resolves #1261, fixes #1255.