Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of new-install for windows #64

Open
jneira opened this issue Aug 8, 2018 · 3 comments
Open

Support of new-install for windows #64

jneira opened this issue Aug 8, 2018 · 3 comments

Comments

@jneira
Copy link
Collaborator

jneira commented Aug 8, 2018

  • Currently the default master (new-)install is not supported for windows, like in cabal itself (Symlinking feature not available on Windows)
  • As etlas uses lightweight scripts as launchers the support could be create a cmd script file in symlink-bindir that simply executes the launcher script in ${store-dir}\${eta-version}\${package-uid}\bin\${package-name}.cmd
  • Not sure if we could do that for all os's or keeping the symlink in unix is better
@rahulmutt
Copy link
Member

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
Copy link
Collaborator Author

jneira commented Aug 8, 2018

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
Copy link
Collaborator Author

jneira commented Feb 4, 2019

There is a pr in cabal about add a install-method flag to allow copy the executables instead symlinking them: haskell/cabal#5870

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants