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

Add Core func #15

Merged
merged 1 commit into from
Apr 22, 2021
Merged

Add Core func #15

merged 1 commit into from
Apr 22, 2021

Conversation

6543
Copy link
Owner

@6543 6543 commented Apr 22, 2021

cherry-picked from upstream: https://github.com/hashicorp/go-version/pull/85

Adds a Core function to Version, which returns a new Version created from only
the MAJOR.MINOR.PATCH segments of the original version, without prerelease or
metadata strings.

Consumers of go-version often want to treat prereleases of versions as equal to
non-prerelease versions, e.g. 0.15.0-dev as equal to 0.15.0. The present
functionality is intended as an easy way to opt in to this behaviour.
@6543 6543 added the enhancement New feature or request label Apr 22, 2021
@6543 6543 merged commit 2fb2710 into master Apr 22, 2021
@6543 6543 deleted the add_Core_func branch April 22, 2021 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants