The Docker images hosted at ocaml/opam2 have now been updated to include the latest OCaml 4.08.0 release as well as the snapshots of 4.09 and 4.10.
One sideeffect of this is that the ocaml/opam2
default image now has OCaml 4.08 as its default switch. If you use it in CI, it may suddenly give you errors if your code has not yet been ported to work with that new release.
As a reminder, you can pin the OCaml version you use in CI easily by:
- running
opam switch 4.07
as the first command in the Dockerfile afterFROM ocaml/opam2
. - using the
ocaml/opam2:4.07
image instead of the default one. This image also includes several other 4.07.0 variants (such as afl, flambda and so on), which you can list withdocker run ocaml/opam2:4.07 opam switch
.
As always, please get in touch with me if you see any other breakage from these image updates.