Is it possible to specify a version range in the
[compat] section in Project.toml?
In particular, I’d like to specify a range including both 0.7 and 1.0, indicating that the package works for all versions from 0.7 to 1, including both, but not any version with e.g. 2.x, as a safety measure for when that version will be released.
I’ve tried writing
[compat] julia = ">=0.7, <2"
according to the docs
The intersection of multiple version specifiers can be formed by comma separating indiviual version specifiers.
and that seemed to work fine, but when trying it out by changing the upper bound to
1.0, it added without error on 1.0, even though it should only be possible to add that package to 0.7, if I understand correctly.