ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.24k stars 356 forks source link

More expressive version constraints for pins #1351

Open kit-ty-kate opened 10 years ago

kit-ty-kate commented 10 years ago

I would be awesome to have something like this: opam pin apackage "< 9999"

This would allow in this case, to have upgrades for this package but without reaching the dev version.

kit-ty-kate commented 10 years ago

Ping

AltGr commented 10 years ago

Oh, I remember quite clearly writing an answer to this a while ago, must have skipped the "submit" button... Sorry.

That would be possible, but the pinning handling relies in quite a few places on a fixed version: the other versions of the same package are filtered out and hidden. That's actually the common ground between version and source pinning ; so adding this feature would be non-trivial, this would probably need a new mechanism.

At a much lower level, you could pin a virtual package and add this constraint to it ; not very convenient I admit.