GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Feature] Set fallback version

Open Michenux opened this issue 3 years ago • 1 comments

I would like to be able to configure the fallback version (0.1.0) in the GitVersion.yml to specify the first version when there is no tag on the git repository. In my use case, i want the first version to be 1.0.0.

Michenux avatar Apr 04 '22 13:04 Michenux

The only reason why you have the fallback version in the code is that at least one version will be returned. Of course it is quite unintentionally that this version is 0.1.0. It should be 0.0.0 with should increment true IMO. If you want the first version number in your project 1.0.0 then you should define this as next-version. Exactly for that purpose the next version configuration is there.

HHobeck avatar Sep 21 '22 17:09 HHobeck

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 Mar 04 '23 09:03 github-actions[bot]