-
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] 5.12.0 does not respect tag in Continuous Deployment mode #3614
Comments
Hi Guillaume. Please provide steps to reproduce!! In advance does this happen in the pre-release 6.0.0-beta.3 as well? |
This bug resembles the closed one in #3351. Is version The command "dotnet --roll-forward Major "C:\<some-path>\packages\GitVersion.MsBuild.6.0.0-beta.3\tools\net6.0/gitversion.dll" "C:\<some-path>\src\TestProject" -output file -outputfile gitversion.json" |
Thanks @HHobeck for quick reply I will send a link to a public repo and build repro asap. |
@HHobeck This azure devops repo reproduces the issue: https://dev.azure.com/guillaume-delahaye/_git/GitVersion-Issue3614 |
Finally the question remains: Is this issue also existing on the pre-release version of git-version? It would be nice to find out the answer. |
I think it has something to do with the circumstance how the git repository will be checked out. Maybe try the following (see attachment [1]): steps:
- checkout: self
clean: true
fetchDepth: 0 Generally, I don't understand your scenario. Why would you tag a pre-release version on main? The logic how it is implemented is that the pre-release label will be not considered when it's not matching with the branch (see attachment [2]). Thus your expectation to get the version |
If I get you correctly, in order for the pre-release to work I need to create a "-rc" tag in a "rc" branch? In my workflow I kind of follow the flow suggested by @g7ed6e as well. |
Please see the answer of the following discussion: Using prerelease tag in git tag is removed from version numbers #3663 (reply in thread)
If you want to define a branch with multiple pre-release labels you need to specifiy the label with null value (on branch and root level). public void EnsurePreReleaseTagLabelWillBeConsideredIfNoLabelIsDefined(long patchNumber) |
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. |
I'm going to close this issue because I think it is the same problem like I have analysed here in the issue: You need to ensure that the tag matches with the label on the branch with continues delivery mode. |
Describe the bug
With 5.12.0, in ContinuousDeployment mode, the tag applied to a commit is not took into account and is overriden.
Expected Behavior
If i tag a commit with
1.1.0-preview1
on a master branch i would expect that NuGetVersion and NuGetVersionV2 to be1.1.0-preview0001
(this is the behavior of GitVersion 5.10.3)Actual Behavior
1.1.0-tags-1-1-0-prev-0001
1.1.0
Possible Fix
GitVersion Documentation is mentionning
Steps to Reproduce
Context
Azure DevOps git repo that output nuget packages, GitHub flow. GitVersion used to ship preversion from the master branch.
The text was updated successfully, but these errors were encountered: