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
Version is not incrementing on develop after creating the release branch #3149
Comments
Remove |
Could you please create an integration test and specify your actual scenario so we are knowing what your would like to achieve? [Test]
public void __Just_A_Test__()
{
string yaml = @"...";
var configuration = ConfigSerializer.Read(new StringReader(yaml));
using var fixture = new EmptyRepositoryFixture();
fixture.MakeATaggedCommit("2.0.0");
// ✅ succeeds as expected
fixture.AssertFullSemver("2.0.0", configuration);
// ❌ expected: ...
fixture.AssertFullSemver("...", configuration);
} |
Here the test with what I expect : [Test]
public void TestMethod1()
{
var yaml = @"branches:
develop:
tag: beta
release:
tag: rc
hotfix:
tag: rc";
var configuration = ConfigurationSerializer.Read(new StringReader(yaml));
using var fixture = new EmptyRepositoryFixture();
fixture.MakeACommit("one");
fixture.BranchTo("releases/R2301");
fixture.MakeATaggedCommit("1.0.0-RC.1");
//fixture.Checkout("main"); <============= it works if I uncomment this 2 lines
//fixture.ApplyTag("1.0.0");
fixture.BranchTo("develop");
fixture.MakeACommit("two");
fixture.AssertFullSemver("1.1.0-beta.1", configuration);
} I would like to switch to the version 1.1 in develop event if the release is not merged yet into master. |
Hi @mouradchama. Thank you for providing the integration test. What would be your expectation on the |
I think this issue is related to #2973. |
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. |
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. |
Hi,
Describe the bug
I'm facing an issue with GitVersion, I'm following the GitFlow strategy, this is my GitVersion file:
The meta data was incrementing until I created the release branch:
From the release branch I have the right versions (3.0.0-rc1, 3.0.0-rc2 ....), but from develop GitVersion continue using the 3.0.0-beta.x, without incrementing the minor.
The stable package (merge release into master) is not created yet.
The release name does not include the version (the name is : Releases/R2207), I'm taging the release branch after each build.
Expected Behavior
On develop I expect versions: 3.1.0-beta.1
Actual Behavior
3.0.0-beta.1
Your Environment
Azure Devops
GitVersion 5.10.3
The text was updated successfully, but these errors were encountered: