-
Notifications
You must be signed in to change notification settings - Fork 347
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 misreports installed packages #5554
Comments
Hi @jonsterling , what does |
@ejgallego Here is the output of
As you can see, contrary to the comment on Twitter, it is not the case that I have ocaml 5.2.0 installed. |
Thanks for the info. So IIUC, on that switch, you run What does |
@ejgallego Yes, that is correct (and thanks for your help trying to diagnose this!). On this switch, here is the output of a fresh call to
Here is the output of a call to
|
To reproduce this, I expect you should be able to simply start a completely fresh switch on your own machine. I have done nothing strange, and this actually started on a totally fresh installation of ocaml and opam. |
Thanks, that output certainly looks weird... Maybe that's some opam 2.1.0 issue? Could you test if 2.1.4 does the same? Looking from here, it seems to me that opam should never consider for upgrade the ocaml packages as these should be marked "avoid-version", but that's new in 2.1 so likely you could be hitting a bug. |
I can't reproduce the first error, but with opam 2.1.4 I get this which is indeed horribly confusing:
Part of the mess is that If get rid of
My hypothesis was that the update blockage was confusing the solver, but that doesn't seem to be the case. If I uninsall
which is total nonsense ! Requesting an explicit install we can see:
which is not much better... |
I'll stop for now, I can conclude that:
|
@ejgallego I have tried this on a completly different machine with a completely fresh configuration of opam 2.1.4 without any packages of my own installed, and I can easily reproduce exactly the wrong behavior that I originally reported. So I am not sure what is going on in your investigations... Let me give you the details below.
|
Hi @jonsterling , great, thanks a lot for taking the time to provide careful reproduction instructions, that's very helpful! I will try and report back. |
I was able to reproduce with 2.1.4 & master. It seems that it is a bug from #3354. |
@rjbou Wonderful, that is great progress!! Thanks to you and @ejgallego for engaging. |
Observed behavior
When I run
opam upgrade
, I receive the following message:Why the observed behavior is a malfunction
Note that it says
ocaml.5.2.0 is installed
; this is not correct, and is very confusing. Indeed, here is the output ofopam info ocaml.5.2.0
verifying that onlyocaml.5.0.0
is installed:Expected behavior
I am not sure what the expected behavior should be because I am not an expert in
opam
; it is OK that opam reports thatocaml-base-compiler.5.1.0~alpha1
cannot be installed, but it is not OK that it makes up an untrue reason.Output of
opam config report
The text was updated successfully, but these errors were encountered: