Open nojb opened 2 weeks ago
At some point, we would like to switch to using ocaml-tar for the extraction, which would solve this, but the problem usually is having a tarball where the symlink appears before the file itself - this is a problem on Windows, but not on Unix (this is the reason for the mitigation added in #5953 which you can see with your winsymlinks:native
version). Having dangling symlinks in a tarball will always be a problem and we should encourage any package which ships tarballs like that, um, not to!
opam internally sets CYGWIN=winsymlinks:native
if it detects that native symbolic links are available - I opted to preserve the winsymlinks:nativestrict
for Cygwin, on the basis that the user knows best. I'm persuadable, but at the moment, opam is kinda operating as intended.
Note that MSYS2 has a fallback to copying for symlinks, but as far as I know Cygwin doesn't have an equivalent mode for doing that.
Thanks for the explanation @dra27!
I tried to install
ocamlformat.0.26.2
under Windows (running under Cygwin, with the Mingw64 compiler), and it fails when trying to installocp-indent
. I haveCYGWIN=winsymlinks:nativestrict
set (see https://cygwin.com/cygwin-ug-net/using-cygwinenv.html).If I set
CYGWIN=winsymlinks:native
, then it passes, with a warning:My config: