Skip to content

2.1.0~alpha2

Pre-release
Pre-release
Compare
Choose a tag to compare
@AltGr AltGr released this 28 Jul 15:40
· 3441 commits to master since this release
c0ce51e

This is the second alpha release of opam 2.1.0.

This alpha release contains many fixes and a few polished or new features upon alpha1.

Binaries and full archive are signed by AltGr.

Changelog

Possibly script-breaking changes are prefixed with ✘
New options are prefixed with ◈

Init

Upgrade

Archives fetch

  • Copy instead of calling rsync when archives are in a local cache [#4270 @kit-ty-kate]

Install

Remove

Switch

Pin

  • Add depext handling on new pinned packages [#4194 @rjbou - fix #4189]
  • Don't keep unpinned package version if it exists in repo [#4073 @rjbou - fix #3630]
  • Fix path resolving when pinning with file:// [#4209 @rjbou - fix #4208]
  • ✘ Disable recursive & subpath pinning (only present experimentally in opam 2.1.0~alpha) [#4252 @rjbou]

List

  • Add --no-depexts option to disable depexts packages unavailability [#4194 @rjbou - fix #4205]
  • Warn if packages are not listed because of depexts unavailability [#4194 @rjbou - fix #4205]

Show

  • ✘ Display error message for all not found packages [#4179 @rjbou - fix #4164]
  • ✘ Keep package order given via cli [#4179 @rjbou - fix #4163]
  • --sort apply to with all options, not only --just-file [#4179 @rjbou]

Var

Option

  • Fix messages advertising a command in an obsolete format [#4194 @rjbou]
  • Add switch depext-bypass as modifiable field [#4194 @rjbou - fix #4177]

Lint

  • E65: check that url local paths are absolute [#4209 @rjbou]

External dependencies handling, aka depext

  • Fix arch query [#4200 @rjbou]
  • Add message when adding a package to depext-bypass [#4194 @rjbou]
  • Fix performance issue of depext under Docker/debian [#4165 @AltGr]
  • Refactor package status [#4152 #4200 @rjbou]
  • Add environment variables handling [#4200 @rjbou]
  • Add Macport support [#4152 @rjbou]
  • Homebrew: add no auto update env var for install, accept pkgname and pkgname@version on query [#4200 @rjbou]
  • Tag packages with missing depexts in Cudf [#4235 @AltGr]
  • Force LC_ALL=C for query commands [#4200 @rjbou]
  • Put back opam-depext-2.0's behaviour with regards to asking users' consent before installing system packages [#4168 @kit-ty-kate @rjbou]
  • Add OPAMDEPEXTYES env variable to pass --yes options to system package manager [#4168 @kit-ty-kate @rjbou]
  • Fix install command dryrun [#4200 @rjbou]
  • ◈ Add --depext-only to install only external dependencies, regardless of config depext status [#4238 @rjbou]
  • Move confirmation message after opam packages install [#4238 @rjbou]
  • Error if --depext-only is given with --assume-depexts or --no-depexts [#4238 @rjbou]
  • Handle debian virtual packages [#4269 @AltGr @rjbou - fix #4251]

Sandbox

Repository management

Build

Infrastructure

  • Use OCaml 4.09.1 for the make cold target [#4257 @dra27]

Admin

Opam installer

  • For paths, remove use of empty switch in favor of a context-less module [#4237 @rjbou]

Opam file

Solver

  • Fix Cudf generation for compat with external solvers [#4261 @AltGr]
  • Check for a solution before calling the solver [#4263 @AltGr]
  • Add the package flag hidden-version to discourage selection by the solver [#4281 @AltGr]
  • Tweak the default criteria to handle missing-depexts and hidden-version flags [#4281 @AltGr]

Internal

  • Disable chrono when timestamps are disables [#4206 @rjbou]
  • Expose some functionality in the OpamAction, OpamPath and OpamSwitchState modules for use without a switch value [#4147 @timberston]
    • Path: introduce a functor to permit replicating switch layout in different contexts
  • Std: Add map_reduce to Set and Map [#4263 @AltGr]
  • Fix regression in command resolution from #4072 [#4265 @dra27]

Test

Documentation

Various contributors helped us to update and add code documentation: