Skip to content

Commit

Permalink
[p] Merge pull request ocaml#5024 from AltGr/fast-coinst
Browse files Browse the repository at this point in the history
Add pre-processing to coinstallability checks
  • Loading branch information
rjbou committed Jul 12, 2022
1 parent 542e220 commit 37fab96
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
37 changes: 36 additions & 1 deletion master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ New option/command/subcommand are prefixed with ◈.
*

## Admin
* [BUG] Fix repo-upgrade internal error [#4965 @AltGr]
*

## Opam installer
*
Expand Down Expand Up @@ -98,6 +98,11 @@ New option/command/subcommand are prefixed with ◈.
* Port opam-rt tests: orphans, dep-cycles, reinstall, and big-upgrade [#4979 @AltGr]
* Add & update env tests [#4861 #4841 #4974 @rjbou @dra27 @AltGr]
* Add remove test [#5004 @AltGr]
* Add some simple tests for the "opam list" command [#5006 @kit-ty-kate]
* Add clean test for untracked option [#4915 @rjbou]
* Harmonise some repo hash to reduce opam repository checkout [#5031 @AltGr]
* Add repo optim enable/disable test [#5015 @rjbou]
* Update list with co-instabillity [#5024 @AltGr]
### Engine
* Fix meld reftest: open only with failing ones [#4913 @rjbou]
* Add `BASEDIR` to environement [#4913 @rjbou]
Expand All @@ -115,12 +120,42 @@ New option/command/subcommand are prefixed with ◈.
* Clean outputs from opam error reporting block [#4966 @rjbou]
* Avoid diff when the repo is too old [#4979 @AltGr]
* Escape regexps characters in string replacements primitives [#5009 @kit-ty-kate]
* Automatically update default repo when adding a package file [#5004 @AltGr]
* Fix github url: `git://` form no more handled [#5097 @rjbou]
* Escape regexps characters in string replacements primitives [#5009 @kit-ty-kate]
* Automatically update default repo when adding a package file [#5004 @AltGr]
* Replace vars on the right-hand of exports [#5024 @AltGr]

## Doc
* Add github `git://` protocol deprecation note [#5097 @rjbou]

## Security fixes
*

# API updates
## opam-client
* `OpamStd.ABSTRACT`: add `compare` and `equal`, that added those functions to `OpamCLIVersion` [#4918 @rjbou]
* `OpamConfigCommand`: add a labelled argument `no_switch` to `exec` [#4957 @kit-ty-kate]
* `OpamClient`: fix `update_with_init_config`, when ``jobs` was set in `init_config`, it dropped rest of `config` update [#5056 @rjbou]
* Add an optional argument to `OpamArg.mk_subdoc` for extra default elements: `?extra_defaults:(validity * string * string) list` [#4910 @kit-ty-kate]
* Add `OpamSwitchCommand.previous_switch` [#4910 @kit-ty-kate]
## opam-repository
* `OpamRepositoryConfig`: add in config record `repo_tarring` field and as an argument to config functions, and a new constructor `REPOSITORYTARRING` in `E` environment module and its access function [#5015 @rjbou]
## opam-state
## opam-solver
* `OpamCudf`: Change type of `conflict_case.Conflict_cycle` (`string list list` to `Cudf.package action list list`) and `cycle_conflict`, `string_of_explanations`, `conflict_explanations_raw` types accordingly [#4039 @gasche]
* `OpamCudf`: add `conflict_cycles` [#4039 @gasche]
* `OpamCudf`: add `trim_universe` [#5024 @AltGr]
* `OpamSolver.cudf_versions_map`: no more takes a package set as argument, compute whole packages (repo + installed) and take accounet of invariant [#5024 @AltGr]
* `OpamSolver.load_cudf_universe`: change staging of `add_invariant` [#5024 @AltGr]
* `OpamSolver.coinstallable_subset`: add `add_inaviant` optional argument [#5024 @AltGr]
## opam-format
* `OpamStd.ABSTRACT`: add `compare` and `equal`, that added those functions to `OpamSysPkg` and `OpamVariable` [#4918 @rjbou]
* Add OpamPackage.Version.default returning the version number used when no version is given for a package [#4949 @kit-ty-kate]
* Add `OpamPath.Switch.man_dirs` [#4915 @rjbou]
* `OpamFile.Config`: order list of installed switches according their last use, update `with_switch` accordingly, and add `previous_switch` [#4910 @AltGr]
## opam-core
* OpamSystem: avoid calling Unix.environment at top level [#4789 @hannesm]
* `OpamStd.ABSTRACT`: add `compare` and `equal`, that added those functions to `OpamFilename`, `OpamHash`, `OpamStd`, `OpamStd`, `OpamUrl`, and `OpamVersion` [#4918 @rjbou]
* `OpamHash`: add `sort` from strongest to weakest kind
* `OpamSystem.real_path`: Remove the double chdir trick on OCaml >= 4.13.0 [#4961 @kit-ty-kate]
7 changes: 6 additions & 1 deletion tests/reftests/run.ml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,12 @@ let run_test ?(vars=[]) ~opam t =
vars
| Export bindings ->
List.fold_left
(fun vars (v, r) -> (v, r) :: List.filter (fun (w, _) -> v <> w) vars)
(fun vars (v, r) ->
let r =
str_replace_path ~escape:`Backslashes
OpamSystem.forward_to_back (filters_of_var vars) r
in
(v, r) :: List.filter (fun (w, _) -> not (String.equal v w)) vars)
vars bindings
| Cat { files; filter } ->
let files =
Expand Down

0 comments on commit 37fab96

Please sign in to comment.