OCamlPro / ows

A service to analyse the state of the opam repository w.r.t. all available version of the OCaml compiler.
http://ows.irill.org/latest/today/index.html
Other
5 stars 3 forks source link

Consider the transitive closure of availability #5

Closed samoht closed 8 years ago

samoht commented 9 years ago

The current policy in the opam repository is to only tag the root packages as unavailable for a given compiler version or OS. This helps having more precise error message in opam, for instance:

$ opam install core_bench.109.55.00
The following dependencies couldn't be met:
  - core_bench -> core = 109.55.00 -> custom_printf = 109.27.00
Your request can't be satisfied:
  - custom_printf.109.27.00 is not available because it requires OCaml < 4.02.0.

Which is much more useful feedback than core_bench.109.55.00 requires OCaml < 4.02. Forcing the package maintainer to fix that would be a mistake, in my opinion.

In the reports, you mark custom_printf.109.27.00 as "unavailable" but core_bench.109.55.00 as broken: I think this is the wrong feedback you want to give to package maintainer.

rdicosmo commented 9 years ago

Please feel free to submit a PR implementing the alternative message you would like to see.

samoht commented 9 years ago

See https://github.com/ocaml/opam-repository/pull/4071

samoht commented 9 years ago

Seems that the same discussion has moved to #14 so closing.