-
Notifications
You must be signed in to change notification settings - Fork 109
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
Allow negation in advanced version specifiers #397
Comments
Actually, it looks like |
The advanced version specifier of Modules follows syntax of Spack version specifier. So for the need you describe, I suggest to enable the use of version range within version list. For the moment version list can only be composed of version. With that change |
Ok, I see that they don't have a negation. While they use As far as I've understood then you agree that the version list doesn't allow version ranges within versions lists? And that you think this would be useful? Allowing more ranges in one list would definitely be nice to have. |
I wonder if
Yes. It was not part of the advanced version specifiers feature made in 2019 but it seems really useful to add this. At first sight it seems it does not require much work to add that. |
Ok, great! That would still be most useful! |
Is your feature request related to a problem? Please describe.
One can define versions using the advanced version specifiers
However, it is only positive matches.
Describe the solution you'd like
It would be great if one could do negative matches. A possible solution would be:
Describe alternatives you've considered
The above is of course easily bypassed by something like:
but that quickly gets complicated when having more than 1 excluded version.
It would be great if the version specifiers also allows ranges when negating.
Additional context
This is generally useful when certain released versions of a library has specific bugs. This could be a release that accidentally breaks API or something else.
The text was updated successfully, but these errors were encountered: