I’m following the tips here: https://opam.ocaml.org/blog/opam-20-tips/ and trying to figure out a way to set up a simple opam project with a reproducible build. I went through the following steps:
- Started with a system switch
- Wrote a
opam lock .to create a
opam switch create . --deps-only ocaml-base-compiler.4.07.1to create a local switch and completely seal off the project’s build environment from the system state.
I then ran
du -sh . in my project root and it reports a size of 454MB. This is quite massive for a tiny project. Is there any way for opam to share packages with identical versions across switches?