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

Support for SemVer pre-releases #355

Closed
ydirson opened this issue Oct 23, 2023 · 1 comment
Closed

Support for SemVer pre-releases #355

ydirson opened this issue Oct 23, 2023 · 1 comment

Comments

@ydirson
Copy link
Contributor

ydirson commented Oct 23, 2023

semver allows versions to include a "pre-release" (eg. -beta), and that would be useful for FreeBSD versioning, which has not only -RC1 and such, but also uses -RELEASE for stable versions, which unfortunately all end up as Version::Custom today.

I understand that adding an optional component is likely to have some impact, switching enum type from a tuple to a struct with an Option. This also raises the issue that many OS versions indeed are not strictly SemVer-compliant (eg. no patchlevel or even no minor version), and this could be a path towards supporting them more exactly.

Note SemVer also has a concept of "build metadata" (eg. +20130313144700), but I'm not sure how much that one would be useful here.

@ydirson
Copy link
Contributor Author

ydirson commented Nov 6, 2023

Closing this in favor of this suggestion for #280

@ydirson ydirson closed this as completed Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant