-
-
Notifications
You must be signed in to change notification settings - Fork 282
Add example of manually checking specifications #3847
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
Conversation
|
I think this is a good idea and we should imo also:
|
|
That all sounds good to me. For naming, maybe just something like |
|
Does this mean that we have to make |
|
Ping on this, I ran into this again and would have found it useful to have this in the docs |
|
Is |
|
|
|
Just bumping my comment here: #3847 (comment)
It seems like all of the use cases here are for calling |
|
We can pick whatever name we want, I just gave |
|
@DilumAluthge who was your question addressed to? Just want to make sure I didn't miss it |
|
Just the group as a whole. |
Implemented in #4292. |
|
#4292 is on the way to merge so we can close this. |
The Compatibility guide is very helpful, but I still find the exact syntax easy to forget, and find myself repeatedly checking this guide whenever I'm creating a complex version specification.
I recently found the
Pkg.Versions.semver_specas a way to manually parse the version string. I have found this useful for my own work and I thought it would be helpful to give an example of how to use this to explicitly check versions, and make sure you aren't too constrained or too flexible in a given version spec.I add the following subsection to the docs:
Checking specifications
Pkg.jl parses a given version specification using
Pkg.Versions.semver_spec.You can check if a particular version of a package is contained in a particular
range by using this command. For example: