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 optional build metadata comparison #29

Open
lvermeulen opened this issue Feb 21, 2017 · 0 comments
Open

Add optional build metadata comparison #29

lvermeulen opened this issue Feb 21, 2017 · 0 comments

Comments

@lvermeulen
Copy link
Contributor

The semver 2.0 spec (section 10) states:

  1. Build metadata MAY be denoted by appending a plus sign and a series of dot separated identifiers immediately following the patch or pre-release version. Identifiers MUST comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST NOT be empty. Build metadata SHOULD be ignored when determining version precedence. Thus two versions that differ only in the build metadata, have the same precedence. Examples: 1.0.0-alpha+001, 1.0.0+20130313144700, 1.0.0-beta+exp.sha.5114f85.

Since the spec states that build metadata SHOULD be ignored and doesn't state MUST be ignored, this means that we may want to compare build metadata, in other words it is not disallowed.

Please consider adding optional build metadata comparison. I have submitted a PR to introduce options to that effect.

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

2 participants
@lvermeulen and others