GitTools / GitVersion

From git log to SemVer in no time
https://gitversion.net/docs/
MIT License
2.85k stars 650 forks source link

[Bug] Cannot create a version with build metadata #3425

Open tyb-dev opened 1 year ago

tyb-dev commented 1 year ago

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

arturcic commented 1 year ago

@asbjornu

asbjornu commented 1 year ago

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

arturcic commented 1 year ago

@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

github-actions[bot] commented 1 year ago

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] commented 1 year ago

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.