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

Improve error messages for invalid version ranges operators #16069

Merged

Conversation

memsharded
Copy link
Member

Changelog: Fix: Improve the definition of version ranges UX with better error message for invalid ==, ~=, ^= operators.
Docs: Omit

Close #16066

@memsharded memsharded added this to the 2.3.0 milestone Apr 11, 2024
@@ -5,6 +5,7 @@
from conans.model.version_range import VersionRange

values = [
['=1.0.0', [[['=', '1.0.0']]], ["1.0.0"], ["0.1"]],
Copy link
Contributor

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?

Copy link
Member Author

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>
@franramirez688 franramirez688 merged commit f1ef6e4 into conan-io:develop2 Apr 12, 2024
2 checks passed
@memsharded memsharded deleted the ux/error_msg_version_range branch April 12, 2024 09:47
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

Successfully merging this pull request may close these issues.

[bug] Exact version range [==...] not working anymore with conan2
4 participants