Closed liweijian closed 1 year ago
That is an interesting way to create a switch. The failure does look very much related to the first issue you mentioned. But even if the first issue you mentioned was fixed (which it will be in the next release), I wouldn't suggest creating a switch that way on Windows. Many tweaks to the switch are needed for OCaml on native Windows.
The only official way to create a switch is typing dkml init
in a directory. That will give you OCaml 4.14.0 and do all the tweaks required.
@jonahbeckford Cool, thanks for your reply. Just wondering when will the next release? I'd like to give it a shot:)
I am trying to have something ready this week.
@jonahbeckford Just out of curiosity, if we are gonna to throw opam switch
away, how can we applying patch to the 4.14 opam repo in dkml?
You can:
dkml-base-compiler
at https://github.com/diskuv/dkml-compiler.git. Any patches you need can be added following instructions at https://github.com/diskuv/dkml-compiler#patching. They go here: https://github.com/diskuv/dkml-compiler/tree/main/src/pdkml init
to create a local switchdkml-base-compiler
. Something like: opam pin dkml-base-compiler git+file:///x/y/z/dkml-compiler/.git --no-action && opam install dkml-base-compiler --update-invariant
.You can try the Windows 64-bit Installer at https://gitlab.com/diskuv-ocaml/distributions/dkml/-/releases/1.2.1-10 which should fix the flexlink issue.
You can try the Windows 64-bit Installer at https://gitlab.com/diskuv-ocaml/distributions/dkml/-/releases/1.2.1-10 which should fix the flexlink issue.
I tried to build a 4.14.1
opam repo, still got flexlink issue, is it the same thing?
https://github.com/diskuv/diskuv-opam-repository/issues/7
Two issues open. Closing this one; keeping https://github.com/diskuv/diskuv-opam-repository/issues/7 alive.
I some how need to switch a private ocaml repo in Windows, I've installed dkml.
I've read this issue, and this issue, but it seems that they are not applying to my specific case, just wondering is there any way to work around?