Closed ysalmon closed 1 year ago
Yep.
There is an uninstaller by the way. You can run that after a partial attempt to do the cleanup.
But it should be automatic.
Yes, but that is a problem : the installation procedure is complex, and thus has many occasions to fail at some point, and very long, so it is sad to have to restart from zero after a failure. It would be so much better is the installer was somehow "reentrant", in the sense that each step would be idempotent.
For example, after compiling for almost an hour, there was a failure in create-opam-switch.sh
because rsync
failed (why? no idea ; I retried the command manually and it worked). I cannot restart the installation from the point where it failed, I have to redo everything.
By the way, almost everything has been designed for idempotency. That is why you were able to install Git for Windows and it didn't try to re-install it. create-opam-switch.sh
in particular is idempotent. create-opam-switch.sh
is called by dkml init
that not only creates a local switch but upgrades existing local switches; that wouldn't be possible if it weren't idempotent. But that is different from saying that I've exposed a way in the installer for you to restart from various points in the installer. There is a way however:
$TEMP/7z*
folder). In your other issue it was C:\Users\yann\AppData\Local\Temp\7zC98A7834
C:\Users\yann\AppData\Local\Temp\7zC98A7834\sg\network-ocamlcompiler\windows_x86_64\setup-userprofile.bat -AllowRunAsAdmin ...
).-IncrementalDeployment
optionI used to use the -IncrementalDeployment
option heavily, but it is no longer tested because downloading has become quite reliable even from slow virtual machines and Windows sandboxes. The only true network problem I've seen in a while (outside of your issue) is going through the Great Firewall.
Re-opening. Not sure why GitHub automatically closed the ticket.
Status: Currently the fix is being tested.
A fix for this is available at https://github.com/diskuv/dkml-installer-ocaml/releases/tag/v1.2.1-prerel1
Closing for inactivity.
Hello, I am trying to install diskuv OCaml 1.2.0 on Windows 10.
At some point it failed because the Git installer was, it says, corrupted. So I tried again, and I no longer have that error message, but the installer keeps failing on not being able to rename temp files into files under
DiskuvOCaml/bin
andtools
.And this seems to be just because those file are already present, from a previous installation attempt.
The installer should imo be more aggressive in overwriting those files.