ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.23k stars 351 forks source link

Package content and .install file gets removed from the switch but internal switch state kept it installed #6133

Open kit-ty-kate opened 1 month ago

kit-ty-kate commented 1 month ago

I had some weird issue locally and i have no idea what caused it: https://github.com/ocaml/opam-repository/issues/26318

In that case the result.1.5 package:

Maybe it's something of my own doing at some point but i'm opening this issue just in case it happens again or if someone else encounters this too

dra27 commented 1 month ago

Is this another manifestation of #5922?

rjbou commented 1 month ago

result being still installed is normal (and ones that rely on it). It's the delayed removal mechanism (cf #2593, and for a test #6139). What is not normal is that some internal files was removed. As it is shown in the test, everything is kept, from installed package files to internal ones.

Is this another manifestation of #5922?

I don't think.

kit-ty-kate commented 1 month ago

result being still still installed is normal (and ones that rely on it). It's the delayed removal mechanism (cf #2593, and for a test #6139).

I don't know how my switch came to be in this state so we have no indication if this mechanism was used or not