-
Notifications
You must be signed in to change notification settings - Fork 43
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
[CY-5396] git hash may violate semver #53
Comments
Internal ticket created : CY-5396 |
I just encountered this problem myself. I believe replacing the use of Here's the example I encountered where the generated version was rejected by
|
I have this problem with Helm. Can we fix this? Error: Version segment starts with 0 |
In case this is helpful to anyone else, the following bash commands will reformat the pre-release tag to use
|
Can verify this workaround works! Thanks @jsmith-kno2 ! |
Any updates from the devs on this issue? The solution I offered earlier is a workaround but a pretty ugly one at that. Would be great if we could make the delimiter configurable to avoid this problem all together. In lieu of that, approving #83 would be extremely helpful. |
The git hash in the output can be all numeric in which case it violates semver
Example violation:
1.0.1-featurebranchname.0.0148718
While the probability is high that the git hash isn't all numeric but rather alphanumeric, the chance does exist and brakes with futher tools down the road (e.g. helm)
https://github.com/semver/semver/blob/master/semver.md
A pre-release version MAY be denoted by appending a hyphen and a series of dot separated identifiers immediately following the patch version. Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]. Identifiers MUST NOT be empty. Numeric identifiers MUST NOT include leading zeroes. Pre-release versions have a lower precedence than the associated normal version. A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version. Examples: 1.0.0-alpha, 1.0.0-alpha.1, 1.0.0-0.3.7, 1.0.0-x.7.z.92, 1.0.0-x-y-z.--.
The text was updated successfully, but these errors were encountered: