We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It appears that if the minor and patch versions match the ^0.0 constraint then Check returns true regardless of what the major version is.
package main import "github.com/Masterminds/semver" func main() { c, _ := semver.NewConstraint( "^0.0") v, _ := semver.NewVersion("1.0.0") println(c.Check(v)) }
prints true but I would expect based on the readme (^0.0 is equivalent to >=0.0.0 <0.1.0) that it should print false
^0.0
>=0.0.0 <0.1.0
The text was updated successfully, but these errors were encountered:
@mattfarina, since this is the only new code any chance we could get it released as 3.0.2?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
It appears that if the minor and patch versions match the ^0.0 constraint then Check returns true regardless of what the major version is.
prints true but I would expect based on the readme (
^0.0
is equivalent to>=0.0.0 <0.1.0
) that it should print falseThe text was updated successfully, but these errors were encountered: