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

No clear way to install executables on Windows #5748

Closed
bgamari opened this issue Nov 28, 2018 · 6 comments
Closed

No clear way to install executables on Windows #5748

bgamari opened this issue Nov 28, 2018 · 6 comments

Comments

@bgamari
Copy link
Contributor

bgamari commented Nov 28, 2018

It seems that cabal new-install is quite insistent on installing executables with symlinks. However, this facility is not available on Windows. Consequently any attempt to use new-install on Windows ends with either cabal-install complaining that symlink-bindir is not defined or that symlinks aren't supported on Windows.

@jneira
Copy link
Member

jneira commented Nov 28, 2018

It seems there is a pr about it: #5684

@AndreasPK
Copy link
Contributor

AndreasPK commented Mar 20, 2019

There are now new flags available to allow this. However they are off by default.

#5684 seems to have stalled.

Is there a reason against simply making --install-method=copy and --overwrite-policy=always the default on windows?

@fgaz
Copy link
Member

fgaz commented Mar 23, 2019

@andersk The flags introduced in #5870 can be configured in ~/.cabal/config, but the configuration will not be effective until #5942 is fixed. The windows default is still symlink though; PRs welcome.

There's more discussion about this and a possible auto method in #5837 and #5843

@AndreasPK
Copy link
Contributor

--install-method=copy works now, however cabals default method still fails on windows.

Is there a reason why we can't just default to copy on windows?

@fgaz
Copy link
Member

fgaz commented Aug 31, 2019

@AndreasPK #5837 has dome discussion about that

toelli-msft pushed a commit to microsoft/knossos-ksc that referenced this issue Nov 24, 2020
toelli-msft pushed a commit to microsoft/knossos-ksc that referenced this issue Dec 1, 2020
toelli-msft pushed a commit to microsoft/knossos-ksc that referenced this issue Dec 1, 2020
@fgaz
Copy link
Member

fgaz commented Dec 15, 2020

Fixed in #6519

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

4 participants