2.1.3
This is the release of opam 2.1.3.
This minor release contains some fixes, please see blog post for upgrade instructions.
Binaries and full archive are signed by by opam dev team (fingerprint 92C5 26AE 50DF 3947 0EB2 911B ED4C F1CA 67CB AA92
).
Fixes
Init
- Fix
opam init
andopam init --reinit
when thejobs
variable has been set in the opamrc or the current config. [#5056 @rjbou]
Switch
- When inferring a 2.1+ switch invariant from 2.0 base packages, don't filter out pinned packages as that causes very wide invariants for pinned compiler packages [#5176 @dra27 - fix #4501]
Pin
- When reinstalling a package that has a dirty source, if uncommitted changes are the same than the ones stored in opam's cache , opam consider that it is up to date and nothing is updated [#4879 @rjbou]
List
- Some optimisations to
opam list --installable
queries combined with other filters [#4882 @AltGr - fix #4311] - Improve performance of some opam list combinations (e.g.
--available
,--installable
) [#4999 @kit-ty-kate] - Improve performance of
opam list --conflicts-with
when combined with other filters [#4999 @kit-ty-kate]
Show
- Improve performance of
opam show
by as much as 300% when the package to show is given explicitly or is unique [#4998 @kit-ty-kate - fix #4997 and partially #4172] - Handle external dependencies when updating switch state pin status (all pins), instead as a post pin action (only when called with
opam pin
[#5047 @rjbou - fix #5046]
Var/Option
opam var
no longer fails if no switch is set [#5027 @rjbou - fix #5025]- Setting a variable with option
--switch <sw>
fails instead of writing an invalidswitch-config
file [#5027 @rjbou] - When a field is defined in switch and global scope, try to determine the scope also by checking switch selection [#5027 @rjbou]
External dependencies
- Stop Zypper from upgrading packages on updates on OpenSUSE [#4978 @kit-ty-kate]
Sandbox
State
Client
- Fix some empty conflict explanations [#4982 @kit-ty-kate - partially fix #4373]
Internal
Admin
Misc
Build
- Update cold compiler to 4.13 to avoid issues with glibc 2.34 on Unix [#5017 @dra27]
- Bump opam-file-format to 2.1.4 [#5117 @kit-ty-kate - fix #5116]
- When building opam, do not fail if curl/wget is missing [#5223 #5233 @kit-ty-kate]
Documentation
- Fix
make doc
with Dune 2.7 (unblocksopam2web
build) [#5030 @kit-ty-kate] - Update for git protocol deprecation on GitHub [#5097 @rjbou]
Tests
- Port some tests from master [#4841 #4974 #4861 #4915 #4979 #5004 #5006 #5015 #5024 #5025 #5031 #5131 #5176 @AltGr @dra27 @rjbou @kit-ty-kate]
- Update test engine to allow for additional tests [#4913 #4966 #4979 #5004 #5009 #5024 #5097 @AltGr @kit-ty-kate @rjbou]
API updates
opam-client
OpamClient
: fixupdate_with_init_config
, whenjobs
was set ininit_config
, it dropped rest ofconfig
update [#5056 @rjbou]OpamConfigCommand
:set_opt_switch
,set_var_switch
,options_list_switch
, andvar_list_switch
now raise configuration error exception (50) if no switch is found [#5027 @rjbou]OpamClient.Pin.post_pin_action
: no more updates depexts information, moved toOpamSwitchState.update_pin
[#5047 @rjbou]
opam-repository
OpamVCS.VCS
: add aclean
function to the interface clearing all the uncommited files [#4879 @rjbou]OpamVCS.pull_url
: clean repository before fetching [#4879 @rjbou]
opam-state
OpamSwitchState.update_pin
: updates depexts state informations (sys_packages
,avalaible_packages
) [#5047 @rjbou]