package locswijch

  1. Overview
  2. Docs
Bidirectional bridge between dune pkg and opam switches

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.0.tar.gz
md5=f3a837b456a1557bcd00a17c3f3c4dae
sha512=aabd23d0618cbc5a0c5f62792801b0283d7a9607d79eefa525581e1e089b47924708b9ed2e25297180a7743a062d518eb9013ce5d08686ed56f73cdc045e8cfb

doc/CHANGES.html

Changes

0.1.0 (2026-08-21)

Initial release.

  • sync: mirror dune pkg build artifacts (_build/.pkg/) into a real opam switch via hard links, so ocamllsp, merlin, and utop find packages through the standard switch mechanism.
  • restore: reconstruct dune.lock/ and _build/.pkg/ from the switch, surviving dune clean and even deletion of the lock directory.
  • migrate: generate dune.lock/ from an existing opam switch, including static evaluation of opam filters against the host.
  • trip: end-to-end round-trip test (migrate, build, sync, clean, restore, rebuild) with a rebuild-time threshold.
  • Stale package digest directories are pruned using dune pkg print-digest.
  • Parses both the classic and the portable (all_platforms/choice) dune pkg lock formats; validated against 32- and 144-package closures and a 182-package ocaml.org lock.