You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No clear way to install executables on Windows #5748
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.
Reacted by Javier Neira , AndreasPK, Tom Ellis and Dmitry Ivanov
@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
Activity
jneira commentedon Nov 28, 2018
It seems there is a pr about it: #5684
AndreasPK commentedon 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=copyand--overwrite-policy=alwaysthe default on windows?fgaz commentedon 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
automethod in #5837 and #5843AndreasPK commentedon Aug 30, 2019
--install-method=copyworks now, however cabals default method still fails on windows.Is there a reason why we can't just default to copy on windows?
fgaz commentedon Aug 31, 2019
@AndreasPK #5837 has dome discussion about that
Suggest to use cabal --install-method=copy
Suggest to use cabal --install-method=copy
Suggest to use cabal --install-method=copy
fgaz commentedon Dec 15, 2020
Fixed in #6519