Open hasufell opened 6 months ago
It is possible that this change causes large breakage, e.g. for github runners, which use ghcup for provisioning: https://github.com/actions/runner-images/blob/main/images/windows/scripts/build/Install-Haskell.ps1
It doesn't appear to install stack, nor does it set STACK_ROOT
. It also doesn't seem to use our bootstrap script anymore, so that seems like at least github won't be affected.
Opinions @mpilgrem?
@hasufell, I am a little lost as to the question I might be able to help with. However: Windows does (by default; it can be removed on Windows 10 and 11) have a maximum path length; Stack tries to keep paths short on Windows (by using hashes); and Stack's binary installer for 64-bit Windows sets STACK_ROOT
to C:\sr
by default (see etc/scripts/build-stack-installer.hs
about line 57; EDIT now documented online).
https://docs.haskellstack.org/en/stable/stack_root/
We will have to do that in: https://github.com/haskell/ghcup-hs/blob/master/scripts/bootstrap/bootstrap-haskell.ps1