Similarly to #6098, it is surprising for users to see opam show ocaml display 5.4.0 (unreleased at the time of writing and only available via the ocaml-variants.5.4.0+trunk package which is tagged with avoid-version) as the latest available version (all-versions field).
To remedy that, i propose to hide unavailable (currently displayed red and crossed, if the terminal allows it) as well as versions only available using avoid-version/deprecated dependencies by default from the all-versions field unless --all is given.
Similarly to #6098, it is surprising for users to see
opam show ocamldisplay5.4.0(unreleased at the time of writing and only available via theocaml-variants.5.4.0+trunkpackage which is tagged withavoid-version) as the latest available version (all-versionsfield).To remedy that, i propose to hide unavailable (currently displayed red and crossed, if the terminal allows it) as well as versions only available using avoid-version/deprecated dependencies by default from the
all-versionsfield unless--allis given.