[Continuos Delivery] Dev branch and release branch with same commit #3907
Replies: 6 comments 16 replies
-
Hi @DanieleSky. May I ask you: If you take the gitflow workflow. Why would you expect to get the version Please take a look to the following integration tests to get an understanding how it works: |
Beta Was this translation helpful? Give feedback.
-
Sorry @HHobeck Gitversion on GitLab don't know in what branch is when compile a tag.. So it cannot take the right config. |
Beta Was this translation helpful? Give feedback.
-
@DanieleSky I would say this is a bug or at least a new functionality which should be supported by GitVersion. Could you please create an issue with a clear acceptance criteria? |
Beta Was this translation helpful? Give feedback.
-
Yes that is correct. If the current commit has been tagged, GitVersion uses the semantic version of the tag instead of the next version (when it is compatible with the label of the branch). |
Beta Was this translation helpful? Give feedback.
-
What would be your expectation if lets say you have two tags on one commit in different branches?
|
Beta Was this translation helpful? Give feedback.
-
What I want to say is that the branch on which the commit tag is based may not even be known if the tag is semantic. If I tag a version like “v1.0.1” or “v1.0.3-beta.1” that comes from the main, dev, release, or features branch, it doesn’t matter to me because I already have all the informations without the need to calculate the next version. Or am I missing something? |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've a repo with main and dev branches. I'm using GitFlow strategy on Gitlab.
From dev I opened the release's branch "releases-1.1.0" and tag the delivery with tag "v1.1.0-beta.1"
In this case I've got the same commit on dev and releases branches.
Gitversion ignored my tag and use the configuration of dev branches, with this motivation:
"Choosing refs/heads/dev as it is the only branch without / or - in it. Move one of the branches along a commit to remove warning"
Why there is this behaviour?
This the entire log:
Beta Was this translation helpful? Give feedback.
All reactions