package opam-monorepo
Assemble and manage fully vendored Dune repositories
Install
Dune Dependency
Authors
Maintainers
Sources
opam-monorepo-0.3.3.tbz
sha256=f08bc18d4b5edca7d4b99bc27bcf2ea9150a709c8c6fcbbd2b203eb7a56c0c08
sha512=cbd3376728c1cb9d70c7d690c4043518f01daf8975dd4e591d3fa229b94f4f301bb6db049b2362fe6ea0affff6d76c7d0af4283abcb0546d7733f065a9630a0c
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 theduniverse/
folder.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>