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

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

Open
kit-ty-kate opened this issue Jul 31, 2024 · 3 comments

Comments

@kit-ty-kate
Copy link
Member

I had some weird issue locally and i have no idea what caused it: ocaml/opam-repository#26318

In that case the result.1.5 package:

  • was shown as installed (internal switch state)
  • none of its content was installed (e.g. <switch>/lib/result)
  • the <switch>/.opam-switch/install/result.install file was missing
  • packages that rely on it were still installed
  • <switch>/.opam-switch/packages/result.1.5/opam still existed

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
Copy link
Member

dra27 commented Aug 5, 2024

Is this another manifestation of #5922?

@rjbou
Copy link
Collaborator

rjbou commented Aug 6, 2024

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
Copy link
Member Author

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

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

No branches or pull requests

3 participants