Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opam-upgrade explanation text is unclear #4808

Open
Khady opened this issue Aug 24, 2021 · 1 comment
Open

opam-upgrade explanation text is unclear #4808

Khady opened this issue Aug 24, 2021 · 1 comment

Comments

@Khady
Copy link
Contributor

Khady commented Aug 24, 2021

I've been using opam 2.1 a bit and while it seems to work well, I've the impression that the upgrade message is slightly broken, but I don't know if I am missing something. My switch is using ocaml 4.11.2. I have merlin.4.3.1-411 and dune 2.9.0 installed. Yet is says merlin.4.3.1-412 is installed (which isn't true) and dune.2.9.0 is installed and requires ocaml < 4.08~~ (isn't true either?)

$ opam upgrade
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).

The following packages are not being upgraded because the new versions conflict with other installed packages:
[ ... ]
  - merlin.4.3.1-412
  - ocaml.4.14.0
    ∗ camlp4.4.12+system is installed and requires ocaml (>= 4.12 & < 4.13)
    ∗ dune.2.9.0 is installed and requires ocaml < 4.08~~
    ∗ merlin.4.3.1-412 is installed and requires ocaml (>= 4.12 & < 4.13)
    ∗ ocaml-lsp-server.1.7.0 is installed and requires ocaml (>= 4.12 & < 4.13)
    ∗ ocaml-migrate-parsetree.2.2.0 is installed and requires ocaml (>= 4.02.3 & < 4.14)
    ∗ ocamlformat.0.19.0 is installed and requires ocaml (>= 4.08 & < 4.14)
    ∗ ppx_tools.6.4 is installed and requires ocaml (>= 4.08.0 & < 4.14.0)
    ∗ ppxlib.0.22.2 is installed and requires ocaml (>= 4.04.1 & < 4.14)
    ∗ reason.3.7.0 is installed and requires ocaml (>= 4.03 & < 4.13)
    ∗ sequence.1.1 is installed and requires ocaml < 4.08.0
[ ... ]
@kit-ty-kate
Copy link
Member

dune.2.9.0 is installed and requires ocaml < 4.08~~ (isn't true either?)

This part is most likely due to this bug: #4373

In the general case I've seen other people confused by this message before.

On top of rewording it, it would be nice if unreleased packages (ocaml 4.14.0) did not appear there. This looks like something could be done with regard to packages tagged with avoid-version. In this case the only way to install OCaml >= 4.12 is to go through packages that have the avoid-version flag and I suspect this could be easily checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants