package opam-monorepo

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

Install

Dune Dependency

Authors

Maintainers

Sources

opam-monorepo-0.4.2.tbz
sha256=51741adc1992f3ed415dd15ecb1aebe61784b28fa27dade0392a7a39d04e74fe
sha512=40e6ac5f66fabdf7f1dd997dcdc7b25c188274e8d51b8fea5631c19252bcd742ab64e554b10e9631ba1ff49961f59bb76c8d67cba0e03d6ec5ada5b9fefa3be9

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.