[ANN] opam 2.4.0~alpha2

Hi everyone,

We are happy to announce the second alpha release of opam 2.4.0.

This version is an alpha, we invite users to test it to spot previously unnoticed bugs as we head towards the stable release.

What’s new?

  • :dragon_face: opam switch create [name] <version> will not include compiler packages flagged with avoid-version/deprecated in the generated invariant anymore. (#6494)
    This will allow opam to avoid the use of the ocaml-system package unless actually explicitly requested by the user. The opam experience when the ocaml-system compiler is used is known to be prone to a variety of bugs and configuration issues.
    This alpha made this change in order to provide opam switch create with the same experience as opam init, which will itself not choose ocaml-system anymore since the previous alpha1 release.

  • :window: Fallback to the existing Cygwin package manager if its upgrade failed to be fetched (#6495, partial fix for #6474)

  • :goggles: Fix various crashes and extreme performance issues when updating some opam repositories (#6448)

:open_book: You can read our blog post for more information, and for even more details you can take a look at the release note or the changelog.

Try it!

The upgrade instructions are unchanged:

For Unix systems

bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh) --version 2.4.0~alpha2"

or from PowerShell for Windows systems

Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.4.0~alpha2"

Please report any issues to the bug-tracker.

Happy hacking,
<> <> The opam team <> <> :camel:

1 Like