by Milpotel · 1y ago · 0 comments
RUN eval $(opam env) && opam install --yes dune=3.7.0
One day the build just randomly broke. Had to replace it with this: RUN eval $(opam env) && opam install --yes dune=3.19.1
Not a big change, but the fact that this happens at all is just another part of building with OCaml feeling like building on a foundation of sand. Modern languages have at least learned how to make things reproducible with e.g. lockfiles, but OCaml has not.Additionally, see: https://dune.readthedocs.io/en/stable/tutorials/dune-package....
Anyways, what you could do is:
opam pin add dune 3.7.0
opam install dune
Alternatively, you can use the tarball directly: opam pin add dune https://github.com/ocaml/dune/releases/download/3.7.0/dune-3.7.0.tbzCan you be more specific?
(Why the down-vote? He does need to be specific, right? Additionally, my experiences are somehow invalid?)