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

is something weird with 0.x.x constraints ? #46

Closed
mh-cbon opened this issue Mar 13, 2017 · 1 comment
Closed

is something weird with 0.x.x constraints ? #46

mh-cbon opened this issue Mar 13, 2017 · 1 comment
Labels

Comments

@mh-cbon
Copy link
Contributor

mh-cbon commented Mar 13, 2017

Hi,

While i m working on the cli, i found out a weird behavior about constraints when using a pattern starting with a major = 0

Please see:

$ go run main.go -filter 1.x -sort 2.6.5 "1.1.1" 1.1.2 0.0.5
1.1.1
1.1.2
[mh-cbon@pc15-home cli] $ go run main.go -filter 1.x.x -sort 2.6.5 "1.1.1" 1.1.2 0.0.5
1.1.1
1.1.2
[mh-cbon@pc15-home cli] $ go run main.go -filter 0.x.x -sort 2.6.5 "1.1.1" 1.1.2 0.0.5
0.0.5
1.1.1
1.1.2
2.6.5
[mh-cbon@pc15-home cli] $ go run main.go -filter 0.x -sort 2.6.5 "1.1.1" 1.1.2 0.0.5
0.0.5
1.1.1
1.1.2
2.6.5
[mh-cbon@pc15-home cli] $ go run main.go -filter 2.x -sort 2.6.5 "1.1.1" 1.1.2 0.0.5
2.6.5

@mattfarina mattfarina added the bug label Mar 25, 2017
@mattfarina
Copy link
Member

@mh-cbon You found a bug! Thanks.

mattfarina added a commit that referenced this issue Mar 28, 2017
Fixed #46: Fixed 0.x.x and 0.0.x in constraints being treated as *
mh-cbon pushed a commit to mh-cbon/semver that referenced this issue Apr 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants