package opam-lock

Not available on OCaml 5.5
  1. Overview
  2. Docs
Locking of development package definition dependency versions

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.tar.gz
md5=6fb2e5e91837a7f2056255390ce90328
sha512=6c4680ce60f8f85d4a74b4a17ee292349cd85ae94bb02e8b2a6e78ab7ff48f987142396c68c4e2d638a7830791e3a4d6e00800a0d06e1962b3bf7cc322de0566

Description

Added to opam-repository:

README

opam-lock: restrict opam file to describe a precise build environment

This small opam plugin can rewrite opam package definition files to emulate the behaviour of so-called "lock files" present in many package managers.

It reads opam files, extracts the precise set of their dependencies that is currently installed, as well as pins and non-installed optional dependencies, and writes back a <name>.opam.locked file that enforces this set and has the corresponding pin-depends:.

You can then use opam install <name>.opam.locked to get the package installed with the precise dependencies, including transitive dependencies, that it had in the original system.

Option --direct-only can be used to only lock direct dependency versions rather than the whole tree.

Note that the locked opam file adds conflicts to uninstalled optional dependencies, but not recursively: it therefore guarantees the same dependencies get installed, up to potentially some of their optional dependencies.

This project is currently in early beta.

Dependencies (5)

  1. opam-state >= "2.0.0~beta5" & < "2.1"
  2. opam-solver >= "2.0.0~beta5"
  3. cmdliner >= "1.0" & < "2.0.0"
  4. jbuilder >= "1.0+beta7"
  5. ocaml

Dev Dependencies

None

Optional Dependencies

None

Used by (1)

  1. slug < "1.0.1"

Conflicts

None

Build status

Results of building opam-lock with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.2 (this version) good good n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure