Gitversion: Fix the version numbers for beta versions of GitVersion

Created on 26 Jun 2019  路  3Comments  路  Source: GitTools/GitVersion

Because the beta releases are not padded, they return the wrong version.
e.g. If I want latest, I get Beta3+4 instead of Beta3+35 because it's sorted A-Z!

.\nuget install GitVersion.CommandLine -ExcludeVersion -PreRelease -OutputDirectory /tools

Should it follow the GitVersion schema instead of 0035 ?

image

Most helpful comment

After reading the following blog post, the documentation, and https://github.com/NuGet/Home/issues/1359#issuecomment-328519398, I conclude that the mistake here must be that we use - as a separator instead of a .. I believe 5.0.0-beta3.35 should be sorted as higher/newer than 5.0.0-beta3.4. A PR to fix this would be highly appreciated. 馃檹

All 3 comments

Are you in a position to make a PR?

After reading the following blog post, the documentation, and https://github.com/NuGet/Home/issues/1359#issuecomment-328519398, I conclude that the mistake here must be that we use - as a separator instead of a .. I believe 5.0.0-beta3.35 should be sorted as higher/newer than 5.0.0-beta3.4. A PR to fix this would be highly appreciated. 馃檹

fixed in 893d6e4d5d97c04e15d8b03d8689b3a993f93baa

Was this page helpful?
0 / 5 - 0 ratings