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

Incorrect Ranges overlap and identical boundaries error while parsing maven version range #142

Open
keshav-space opened this issue Sep 2, 2024 · 0 comments
Labels
2-next bug Something isn't working

Comments

@keshav-space
Copy link
Member

>>> from univers.version_range import MavenVersionRange
>>> MavenVersionRange.from_native("[3.0.0,3.1.1),(,2.3.4)")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "../univers/version_range.py", line 784, in from_native
    restrictions = maven.VersionRange(string).restrictions
  File "../univers/maven.py", line 226, in __init__
    raise VersionRangeParseError("Ranges overlap: %s" % spec)
univers.maven.VersionRangeParseError: Ranges overlap: [3.0.0,3.1.1),(,2.3.4)
>>> from univers.version_range import MavenVersionRange
>>> MavenVersionRange.from_native("[5.0,5.0]")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "../univers/version_range.py", line 784, in from_native
    restrictions = maven.VersionRange(string).restrictions
  File "../univers/maven.py", line 219, in __init__
    restriction = Restriction(_spec[0 : close + 1])
  File "../univers/maven.py", line 81, in __init__
    raise RestrictionParseError("Range cannot have identical boundaries: %s" % spec)
univers.maven.RestrictionParseError: Range cannot have identical boundaries: [5.0,5.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-next bug Something isn't working
Development

No branches or pull requests

2 participants