Open jneira opened 6 years ago
Not sure if we could do that for all os's or keeping the symlink in unix is better
I suggest that we make the script copying bit a Windows-only thing (just like the launcher scripts). The symlink feature on Unix-based systems is nice.
Investigating a bit i've read that symlinks are supported in windows since vista, with a console tool mklink
and the family of CreateSymbolicLink*
api calls. Surely i am missing something but i wonder why they are not used in windows by cabal or nix.
It seems until windows 10 you needed admin rights to create them and that wouls be the cause.
There is a pr in cabal about add a install-method
flag to allow copy the executables instead symlinking them: https://github.com/haskell/cabal/pull/5870
Symlinking feature not available on Windows
)symlink-bindir
that simply executes the launcher script in${store-dir}\${eta-version}\${package-uid}\bin\${package-name}.cmd