Default opam version in the docker image

Unless I’m mistaken, in the docker images from ocaml/opam, opam defaults to 2.0. It is possible to use opam-2.1 and even opam-2.2, but is there a reason why 2.1, released 3 years ago, is not the default at this point?

1 Like

AFAIU, the reason we are still defaulting to opam 2.0 is as follows:

  • some supported platforms still use opam 2.0 in their distro
  • opam can automatically upgrade its data formats from 2.0 to 2.1 and 2.2, but cannot go back down

Once the last LTS version platform that uses opam 2.0 drops out, well drop 2.0 from the images, and 2.1 will be the default.

Let me now if you have any other questions!