-
Notifications
You must be signed in to change notification settings - Fork 371
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
bug: opam fails to handle corrupted packages #6365
Comments
There was a corruption during the update of repository, it is an internal error. Do you remember what is the command or the context just before that error? To fix this internal error, you can remove the directory We should add an option to
If you want to uninstall opam, you just need to remove the binary and the opam root. If you didn't set specific paths, binary should be in |
@rjbou It could be a false statement bc it's been awhile: I did The first fix doesn't work: ❯ rm -r /private/var/folders/rs/s_91mgrx38n9tg742t37h_t00000gn/T/opam-31163-a0be32/default
❯ opam update default
Fatal error:
In /private/var/folders/rs/s_91mgrx38n9tg742t37h_t00000gn/T/opam-45010-9a9301/default/packages/octez-alcotezt/octez-alcotezt.17.1/opam:
unsupported or missing file format version; should be 2.0 or older The delete-and-install route works. Thanks for the instructions! |
I've managed to reproduce very simply by emptying one of the opam file in
I'm not sure |
The file mentioned is a empty file.
This file bugs almost all the opam commands, following are examples:
And there is no way to uninstall the opam and reinstall it again since this binary was installed from script and not from any package manager like brew.
The text was updated successfully, but these errors were encountered: