Hi everyone,
We’re happy to announce the release of opam 2.5.0 and encourage all users to upgrade.
Note: the following section will recap the various major changes in opam 2.5.0 for anyone who haven’t already read the previous pre-release announcements. For those who did, note that nothing changed between 2.5.0~beta1 and the final 2.5.0.
What’s new? Some highlights:
-
Speedup opam update up to 70%. Thanks to @arozovyk, opam updatenow load opam file incrementally, only parsing the files that have changed since the last time you calledopam update. Before that, opam files in opam repositories were all loaded after an update if there was any change. The performance improvement of this change thus depends on how often you callopam updateand what type of repository and OS you are using. (#5824) -
Improved shell integration. A number of users have been hitting issues with opam’s shell integration where parts of a previous environment was kept in the current environment, causing a number of issues. These can be triggered by, for example, nuking your opam root directory (by default ~/.opamor%LocalAppData%\opam). For this particular case we are still working on a fix, but many other users have reported similar issues without nuking their root directory and in that case we believe to have fixed the majority of issues. (dbuenzli/topkg#142, #4649, #5761) -
² We’ve also changed the default file to which opam initwrites the opam shell integration to be.bashrcinstead of the previous.profileor.bash_profilewhenbashis detected. Doing it this way prevents some issues with existing.profilefiles that source the.bashrcfile and causing an infinity loop when opam asks users to make sure to source their.bashrcfile into their.profilefile. (#5819, #4201, #3990) -
The opam install script now installs an appropriate apparmorprofile on systems configured withapparmor(this is enabled by default on Ubuntu). This change is not strictly speaking related to this release as it is deployed for every versions. (#5968). -
Many more UI additions and improvements, bug fixes, …
You can read our blog post for more information about these changes and more, 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.5.0"
or from PowerShell for Windows systems
Invoke-Expression "& { $(Invoke-RestMethod https://opam.ocaml.org/install.ps1) } -Version 2.5.0"
Please report any issues to the bug-tracker.
Happy hacking,
<> <> The opam team <> <> ![]()