-
Notifications
You must be signed in to change notification settings - Fork 654
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] tag: '' doesn't strip the alpha
tag in master
branch
#3223
Comments
Hi @alsterg, if you want to make a release has semver Find out more with this parameter: |
@asbjornu it will be fixed with changes done in #3224. @alsterg you can run Same scenario happens to me. I tagged main branch with |
May I ask you to reproduce your issue in a unit/integration test and give us your expectations? [Test]
public void __Just_A_Test__()
{
var mainlineConfiguration = TestConfigurationBuilder.New
.WithoutVersioningMode()
.WithVersioningMode("release", VersioningMode.Mainline).WithTag("release", "").Build();
var continuousDeploymentConfiguration = TestConfigurationBuilder.New
.WithoutVersioningMode()
.WithVersioningMode("release", VersioningMode.ContinuousDeployment).WithTag("release", "").Build();
var continuousDeliveryConfiguration = TestConfigurationBuilder.New
.WithoutVersioningMode()
.WithVersioningMode("release", VersioningMode.ContinuousDelivery).WithTag("release", "").Build();
using var fixture = new EmptyRepositoryFixture("main");
fixture.MakeACommit("one");
fixture.BranchTo("release/1.0.0");
fixture.MakeACommit("two");
fixture.MakeACommit("three");
fixture.ApplyTag("1.0.0-beta.1");
fixture.AssertFullSemver("1.0.0-beta", mainlineConfiguration); // expected ???
fixture.AssertFullSemver("1.0.0-beta.1", continuousDeploymentConfiguration); // expected ???
fixture.AssertFullSemver("1.0.0-beta.1", continuousDeliveryConfiguration); // expected ???
} |
fix included in |
Describe the bug
According to documentation (and my understanding) GitVersion's default config should strip the PreReleaseTag from the last known tag and give back a SemVer that can be released as the stable/final/ga version e.g. 1.0.0 as opposed to 1.0.0-alpha.1, which is what it returns instead.
Expected Behavior
GitVersion should strip the tag and give as SymVersion: "SemVer": "1.0.0"
Actual Behavior
GitVersion will return the next PreReleaseNumber increment for the latest tag, which includes the
alpha
string.Possible Fix
Set a tag value to a non empty string e.g. tag: 'ga'
Steps to Reproduce
GitVersion.yml fragment:
Context
This bug complicates our release process, as we need to code in our requirements by means outside of GitVersion.
The text was updated successfully, but these errors were encountered: