fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 34 forks source link

OPAM 2.0 #48

Closed db4 closed 4 years ago

db4 commented 6 years ago

Main OPAM repository now requires OPAM 2.0:

[default] git+https://github.com/ocaml/opam-repository.git updated
[ERROR] The current version of OPAM cannot read the repository "default". 
        You should upgrade to at least version 2.0.

[ERROR] Could not fetch repo: OpamStd.OpamSys.Exit(66)

Do you have any plans to port the latest OPAM to Windows?

fdopen commented 6 years ago

There is now https://github.com/fdopen/opam-repository-mingw/tree/opam2 and https://github.com/fdopen/opam-repository-mingw/releases/tag/0.0.0.2

It's largely untested, I've justed ensured that my old merge scripts work again (they use just a limited number of commands, I did neither test any new OPAM 2.0 features nor the interactive usage from the command line).

Feel free to test it yourself and report any problems in this thread.

kkirstein commented 6 years ago

I just tried the opam2 version, by running the installation script opam64.tar.gz in my existing Cygwin environment. I renamed the existing .opam folder beforehand, so no conversion of existing "switches" took place.

Everything seems to work fine, thanks for the great work!

yakobowski commented 5 years ago

I would suggest that you change the Github default branch to opam2, as it is the one who gets updated. This will be less surprising to users!

fdopen commented 5 years ago

Sounds like a good idea. opam2 is now the default branch.