-
Notifications
You must be signed in to change notification settings - Fork 993
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
Improve error messages for invalid version ranges operators #16069
Improve error messages for invalid version ranges operators #16069
Conversation
@@ -5,6 +5,7 @@ | |||
from conans.model.version_range import VersionRange | |||
|
|||
values = [ | |||
['=1.0.0', [[['=', '1.0.0']]], ["1.0.0"], ["0.1"]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so [=1.0.0]
is supported?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was a bit surprised too, seems more an unexpected result of the parsing, but I am concerned that removing now might break someone, so probably not worth it.
Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
Changelog: Fix: Improve the definition of version ranges UX with better error message for invalid
==, ~=, ^=
operators.Docs: Omit
Close #16066