-
Notifications
You must be signed in to change notification settings - Fork 66
How to add another opam dependency
Erik Martin-Dorel edited this page Oct 14, 2023
·
6 revisions
- Update learn-ocaml.opam and/or learn-ocaml-client.opam
- Run
opam pin add -n -y -k path learn-ocaml.0.x .
- Run
opam pin add -n -y -k path learn-ocaml-client.0.x .
- Run
opam install learn-ocaml learn-ocaml-client
- (… or
opam install .
) - Run
opam lock .
- Run
meld --diff learn-ocaml.opam.locked --diff learn-ocaml-client.opam.locked
and review (update version; remove"ocaml-base-compiler"
) - Commit
Note: the list of packages to install for (client, server) is available in the log of this GHA job.
See also: https://discuss.ocaml.org/t/are-there-best-practices-w-r-t-opam-install-locked/5741/1