Thicket thicket
ocaml
REPOS 1

Tools covers builds, package management, editors, documentation and JavaScript compilation.

W29.2026 · 13–19 Julocaml/opam

Features

  • opam install now accepts root and rootexec sections in .install files, enabling cross-compiled package layouts. Requires opam-version: "2.6" in the package file. #6938
  • New --ignore-available-on flag (and OPAMIGNOREAVAILABLE env var) forces installation of packages whose available constraint is unmet, for compatibility testing. #6836

Compatibility and Releases

  • opam 2.6.0~alpha1 released. #7046
  • .install files containing .. in target paths are accepted again (reverts a 2.5.1 restriction that broke dune cross-compilation). A warning is emitted; strict mode errors. #7008

Fixes

  • The .opam-switch/sources directory now stores only dev/pinned packages; regular packages extract directly into the build directory. Benchmarks show a 24% speedup on multi-package installs. #6440
  • The shell env hook now updates the existing opam switch path in PATH in place rather than prepending it, preserving user-defined directory precedence. #6859
  • opam init --bare no longer computes a default compiler, eliminating a several-second delay. #6957
  • Build directories are removed immediately after each package installs instead of at the end of the command, reducing peak RAM usage. #6906