-
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
[Bug] Wrong version calculation #2287
Comments
I'm not sure this is a bug. But if you could please write up your use-case as a
|
// I'm working with the topic starter on this issue. I'm not sure it is a bug either. Because of mixture of historical and political reasons we are not able to use one of the normal scenarios like GitFlow or GitHubFlow. Therefore, we tried to adapt GitVersion to our situation and it mostly worked out well until we bumped into this issue. What we're trying to get is SemVer-compliant scheme along the following lines:
The problem we face is twofold:
|
|
IMO related to #3041 |
Please see issue #3438. I think this issue is resolved in version 6.x: [Test]
public void ActualBehaviorFor2287()
{
var configuration = GitFlowConfigurationBuilder.New.Build();
using var fixture = new EmptyRepositoryFixture();
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.0.1+1", configuration);
fixture.ApplyTag("0.0.1");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.0.1", configuration);
fixture.BranchTo("develop");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.0.1", configuration);
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-alpha.1", configuration);
fixture.ApplyTag("0.1.0-alpha.1");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-alpha.1", configuration);
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-alpha.2", configuration);
fixture.BranchTo("release/0.1.0");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-beta.1+0", configuration);
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-beta.1+1", configuration);
fixture.ApplyTag("0.1.0-beta.1");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-beta.1", configuration);
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-beta.2+1", configuration);
fixture.ApplyTag("0.1.0-beta.2");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.1.0-beta.2", configuration);
fixture.Checkout("develop");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.2.0-alpha.0", configuration);
fixture.MakeACommit();
// ✅ succeeds as expected
fixture.AssertFullSemver("0.2.0-alpha.1", configuration);
fixture.MergeNoFF("release/0.1.0");
// ✅ succeeds as expected
fixture.AssertFullSemver("0.2.0-alpha.4", configuration);
} |
🎉 This issue has been resolved in version 6.0.0-beta.2 🎉 Your GitReleaseManager bot 📦🚀 |
Describe the bug
Issue with resetting pre-release number and increasing version for next flow
dev->spr->release->tag->spr->dev
Expected Behavior
Actual Behavior
1.0.0-2.spr.5 - didn't reset pre-release number
1.0.0-2.spr.7 - didn't increased Minor version and didn`t reset re-release number
1.1.0-2.spr.5 - pre-release number was reset after merge, due to this manual update "next-version" on earlier steps is not possible, because version can be duplicated
Possible Fix
possible solutions
Steps to Reproduce
Context
Your Environment
GitVersion.yml
The text was updated successfully, but these errors were encountered: