GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Feature] Cannot create a version with build metadata

Open tyb-dev opened this issue 2 years ago • 5 comments

Describe the bug A clear and concise description of what the bug is.

Expected Behavior

Create a build with SemVer2 build metadata attached which is specific for a particular release.

Actual Behavior

According to SemVer2, the build metadata may be used to add additional information to a release. GitVersion ignores build metadata in both next-version and git tag.

Possible Fix

When a release tag explicitly includes build metadata, include it in the version string, or allow specifying it via branch name or commit message.

Steps to Reproduce

$ tag 1.0.0+special
$ gitversion
(...)
 "FullSemVer": "1.0.0",

Context

I'd like to create special builds that sometimes come with build metadata.

Your Environment

Ubuntu 22.04

tyb-dev avatar Mar 06 '23 07:03 tyb-dev

@asbjornu

arturcic avatar Mar 06 '23 09:03 arturcic

Yeah, this seems like a hole we should fill. Pull requests welcome!

asbjornu avatar Mar 06 '23 10:03 asbjornu

@tyb-dev can you tell us which version did you use ? and also if you have tried the latest beta? https://www.nuget.org/packages/GitVersion.Tool/6.0.0-beta.1

arturcic avatar Mar 06 '23 10:03 arturcic

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.

github-actions[bot] avatar Jun 19 '23 11:06 github-actions[bot]

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.

github-actions[bot] avatar Sep 29 '23 11:09 github-actions[bot]