Skip to content
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] Cannot create a version with build metadata #3425

Open
tyb-dev opened this issue Mar 6, 2023 · 5 comments
Open

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

tyb-dev opened this issue Mar 6, 2023 · 5 comments
Labels
Milestone

Comments

@tyb-dev
Copy link

tyb-dev commented Mar 6, 2023

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 tyb-dev added the bug label Mar 6, 2023
@arturcic
Copy link
Member

arturcic commented Mar 6, 2023

@asbjornu

@asbjornu
Copy link
Member

asbjornu commented Mar 6, 2023

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

@arturcic
Copy link
Member

arturcic commented Mar 6, 2023

@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

@HHobeck HHobeck added this to the 6.x milestone Mar 21, 2023
@github-actions
Copy link

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 github-actions bot added the stale label Jun 19, 2023
@arturcic arturcic removed the stale label Jun 30, 2023
@github-actions
Copy link

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 github-actions bot added the stale label Sep 29, 2023
@arturcic arturcic removed the stale label Sep 29, 2023
@arturcic arturcic added stale and removed stale labels Oct 30, 2023
@HHobeck HHobeck modified the milestones: 6.x, 7.x Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants