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

NewConstraint returns nil #63

Closed
fi0rini opened this issue Jan 19, 2018 · 2 comments
Closed

NewConstraint returns nil #63

fi0rini opened this issue Jan 19, 2018 · 2 comments

Comments

@fi0rini
Copy link

fi0rini commented Jan 19, 2018

Hello, semver.NewConstraint returns err for >= 1.3.1 < 2

c, err := semver.NewConstraint(">= 1.3.1 < 2")
@ae-dg
Copy link

ae-dg commented Jan 23, 2018

(Hope I'm not stepping on any toes here...)

I think you need a comma between the two constraints, i.e.

c, err := semver.NewConstraint(">= 1.3.1, < 2")

@mattfarina
Copy link
Member

@nic-fio multiple constraints needs to be separated by a comma as @ae-dg pointed out. Since this has been answered I'm going to close the issue. If you have any further needs please feel free to open a new issue or re-open this one.

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

3 participants