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 update is failing #5408

Closed
ncihnegn opened this issue Jan 6, 2023 · 3 comments · Fixed by #5400
Closed

opam update is failing #5408

ncihnegn opened this issue Jan 6, 2023 · 3 comments · Fixed by #5400

Comments

@ncihnegn
Copy link

ncihnegn commented Jan 6, 2023

$ opam update

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><>  🐫
[default] no changes from https://opam.ocaml.org
[ERROR] Could not update repository "default": In
        /private/var/folders/x8/8s64cxbx0yj16d3shdxmm5gr0000gn/T/opam-12814-5e0534/default/packages/ocaml-variants/ocaml-variants.5.0.0+trunk/opam:
        unsupported or missing file format version; should be 2.0 or older

And I can't open
https://opam.ocaml.org/packages/ocaml-variants/ocaml-variants.5.0.0+trunk/

@dra27
Copy link
Member

dra27 commented Jan 6, 2023

I think this can be worked around by erasing the repo state and re-updating (@rjbou ?)

@dra27
Copy link
Member

dra27 commented Jan 6, 2023

@ncihnegn - it's possible that another opam update should now fix the problem. If it doesn't, you should be able to do: opam repo set-url default git+https://github.com/ocaml/opam-repository and then opam repo set-url default https://opam.ocaml.org, as that will trigger a re-init.

@ncihnegn
Copy link
Author

It works after re-init.

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

Successfully merging a pull request may close this issue.

2 participants