Is there a way of setting an upper bound for the minor version of a dependency in the [compat] section of Project.toml?
I want to set the compatible versions of a dependency to the range [1, 1.5] or [1, 1.6). This is because that dependency has actually broken things on a minor version update, from 1.5.9 to 1.6.0, so I want to declare that my package X depends on package Y but up to 1.5.9 at most.
I have tried to set it as X = "1, 1.5" and X = "1, <1.6", but Julia is choosing to install 1.6.0. I have also tried X = "<1.6", which actually works; but that seems to not follow the guidelines of the General registry, because I get:
The following guidelines were not met:
The following dependencies do not have a [compat] entry that is upper-bounded and only includes a finite number of breaking releases: X
If I use the tilde, as in X = "~1.5", then it will constrain it to versions [1.5.0, 1.6.0). But that seems a bit too constrained compared to the [1.0.0, 1.6.0) which is what I’d like to specify.
The tilde might solve the issue with the auto merge to the General registry, though. I’ll try it out.