typelead / etlas

Etlas, the build tool and package manager for the Eta programming language
63 stars 10 forks source link

Support of new-install for windows #64

Open jneira opened 6 years ago

jneira commented 6 years ago
rahulmutt commented 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.

jneira commented 6 years ago

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.

jneira commented 5 years ago

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