Fixes
-
OpamCachedno longer unconditionally removes an outdated cache file whensafe_modeis set; the removal now respects the flag. Fixes a crash for tools linking opam libraries inside sandboxed builds. (#7066, #7067, open) -
opam init --reinitnow regenerates the list of valid switches and their package caches. Invalid switches are dropped;$PWDis added if$PWD/_opamis a valid switch. (#7068, open) -
opam switch importnow sets the switch invariant, which was previously omitted from the export file. Issue closed 2026-08-03. (#6982) -
opam repo addwith a git remote can fail with amaintenance.lockerror due to a TOCTOU race with git's background maintenance. A git 2.55 fix is referenced; no opam-side patch yet. (#7031, open) -
opam init --reinitno longer prompts the user to retry the command when upgrading from a 2.1 root. (#7058, open)
Features
-
A new check warns (or fails in strict mode) when
.installroot/rootexectarget fields begin with another field prefix, catching malformed install scripts earlier. (#7039, open) -
Repository loading from diff is being homogenised with the initial load path: only
packages/is scanned, andextrafilesin afiles/subdirectory are supported. (#6924, open)
Compatibility and Releases
- Development version bumped to
2.7.0~alpha1~dev, signalling the start of the 2.7 cycle. (#7064, open)