-
Notifications
You must be signed in to change notification settings - Fork 653
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
[ISSUE]: develop does not increment on release branch creation or rc tag #4285
Comments
Your scenario is ensured via the following integration test: I think you need to analyze your use case and ensure e.g. that your repository is setup probably. |
@HHobeck thank you for the swift response, yeah it's odd for this was working when we were on an older version of GitVersion then bumped to the latest version. I will test it out with a fresh repository and see how I go. |
I'm trying to debug this situation too. Unfortunately, our commit history is not as clean as the test scenario. We have a hotfix (8.8.6) merged to the release branch (8.9), the release branch merged to dev (8.10) and dev merged back to release. This is causing build number issues in GitVersion 5.12, but the version is ok otherwise. GitVersion 6.1 is picking up the version from the hotfix (8.8.6) to release merge, giving 8.8.6 instead of 8.9 for release (ignoring the version in the branch name) and 8.9 instead of 8.10 for dev. Edit: In creating test scenarios, GitVersion 6.1 seems to be particular with the version format. A tag of Edit: So for us, adding a Ideally, it shouldn't matter if the trailing 0 version components are omitted, especially as one of the configuration regex allows for this. |
Since the OP used strict SemVer, I'll just leave with this note: that the breaking changes don't make it clear that short version numbers require the loose semantic version format. Although, it does make sense semver.org. [Test]
public void TagsAndReleasesWithShortVersions()
{
// Loose semantic version format required for short version numbers
var config = GitFlowConfigurationBuilder.New
.WithSemanticVersionFormat(SemanticVersionFormat.Loose)
.Build();
// Create repository and tag version 1.0
using var fixture = new EmptyRepositoryFixture();
fixture.MakeATaggedCommit("1.0");
fixture.AssertFullSemver("1.0.0", config);
// Create dev
fixture.BranchTo("develop");
fixture.MakeACommit();
fixture.AssertFullSemver("1.1.0-alpha.1", config);
// Create release 1.1
fixture.BranchTo("release/1.1");
fixture.AssertFullSemver("1.1.0-beta.1+1", config);
// Check dev version
fixture.Checkout("develop");
fixture.AssertFullSemver("1.2.0-alpha.0", config);
} |
Prerequisites
GitVersion package
GitVersion.Tool
GitVersion version
6.0.4
Operating system
macOS
What are you seeing?
We are experiencing an issue where our develop branch version is not being bumped as expected when a release branch is created. Specifically, when we create a release branch (e.g., release/8.5.0), we expect the develop branch to be bumped to 8.6.0-alpha.0. However, instead, it remains as 8.5.0-alpha.173.
Additionally, adding a tag like v8.5.0-rc.1 on the release commit does not result in any change to the develop branch version, which remains incorrect.
Configuration
Our GitVersion.yml configuration is very basic:
workflow: GitFlow/v1
What is expected?
Steps to Reproduce
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
No response
The text was updated successfully, but these errors were encountered: