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

Build metadata is not ignored #6

Open
djha-skin opened this issue Feb 4, 2017 · 0 comments
Open

Build metadata is not ignored #6

djha-skin opened this issue Feb 4, 2017 · 0 comments

Comments

@djha-skin
Copy link

According to SemVer 2.0.0:

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.

However, the cmp function does not ignore build metadata:

degasolv.cli=> (use 'clj-semver.core)
nil
degasolv.cli=> (clj-semver.core/cmp "3.2.3+metadata" "3.2.3")
1
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