package opam-monorepo

  1. Overview
  2. Docs
Assemble and manage fully vendored Dune repositories

Install

Dune Dependency

Authors

Maintainers

Sources

opam-monorepo-0.4.1.tbz
sha256=9a1839629f6c00d60f7c71f68b72cc8191a70c363ffc0efa97e19ed241f8ae57
sha512=77b5047c83e921eaaada7ecb860d0181bdb0d3c5c501345cb2031f54120fe3c675228a715518510d91d8a0eaafb9c96dc2ca1f3e1a6007d439234b239b266b19

doc/concepts.html

Concepts

An opam-monorepo project uses 3 components in the source tree:

  • a set of opam files containing specifications about the dependencies (for example, a dependency on lwt >= 4.0.0)
  • a lock file (with extension .opam.locked) containing references to exact dependencies (for example, lwt = 4.2.1) and how to get them (URLs, hashes, etc.). It also contains information about transitive dependencies, not just the ones mentioned in opam files.
  • a duniverse folder containing the sources for all the packages mentioned in the lock file

The two important commands are:

  • opam monorepo lock, which will read the opam file and compute a solution using the opam repository and the opam solver. It will create or update the lock file with this solution.
  • opam monorepo pull will read the lock file, download the dependencies, and unpack them into the duniverse/ folder.
OCaml

Innovation. Community. Security.