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

Weak Requirement Range Causes Conflict #1824

Open
Anti-Distinctlyminty opened this issue Sep 5, 2024 · 2 comments
Open

Weak Requirement Range Causes Conflict #1824

Anti-Distinctlyminty opened this issue Sep 5, 2024 · 2 comments
Labels

Comments

@Anti-Distinctlyminty
Copy link

The weak requirement ~houdini-19+<=20.5 causes a conflict when using the package houdini-20.5.

I thought that by default if a minor/patch version is not specified, then it means "all are ok". But this appears to not be the case.

Environment

  • OS Windows 10
  • Rez version 2.112.0
  • Rez python version 3.9.13

To Reproduce

  1. Create two packages, one defining houdini-20.5, the other with the requirement ~houdini-19+<=20.5.
  2. Attempt a rez-env

Expected behavior
houdini-20.5 should be accepted by the requirement ~houdini-19+<=20.5.

Actual behavior
image

@JeanChristopheMorinPerso
Copy link
Member

This is expected AFAIK:

>>> ver_range = rez.version.VersionRange('houdini-19+<=20.5')
>>> ver_range.contains_version(rez.version.Version('20.5.278'))
False

20.5.278 is greater than 20.5 here.

@Anti-Distinctlyminty
Copy link
Author

Fair enough. Might be a point for the docs, unless I'm the only one who was caught out by this :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@Anti-Distinctlyminty @JeanChristopheMorinPerso and others