Thicket thicket
ocaml
REPOS 9

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

W42.2025 · 13–19 Octocaml/opam

Features

  • opam 2.5.0~alpha1: released 2025-10-16. Version bumped to 2.6.0~alpha1~dev the following day. Release PR, version bump.

Compatibility and Releases

  • opam 2.4.1 / cmdliner 2.0.0: opam fails to compile against cmdliner 2.0.0 (Unbound value Term.info). The short-term plan is to vendor cmdliner 1; a constraint pinning cmdliner < 2.0.0 was added. #6739, #6425.

  • opam install script (Ubuntu 24.04): an AppArmor profile is now installed alongside opam, resolving bwrap: operation not permitted failures caused by restricted unprivileged user namespaces. #6647.

Fixes

  • opam init (bash): now writes the opam incantation to ~/.bashrc instead of ~/.profile, and advises sourcing .bashrc from .profile. Eliminates the infinite-sourcing loop on Debian-family systems. #6603.

  • opam env / init scripts: variables.sh is no longer sourced when OPAM_SWITCH_PREFIX is already set, preventing PATH and MANPATH duplication in subshells and editor terminals. PR #6729.

  • OPAMFETCH: the value is now tokenised with POSIX shell quoting rules, so OPAMFETCH='wget --header "Authorization: token …" …' passes the header as a single argument. #5492.

  • opam remove --force: no longer executes remove commands in the current working directory when the target package is not installed. #6672.

  • opam upgrade: packages whose opam file has empty-but-present build, runtest, install, or remove fields are no longer flagged for recompilation. #6505.