Skip to content

installation script breaks on msys2 installation

msys2 installation fails

hastebin dump: https://www.toptal.com/developers/hastebin/favazaxupo.bat

image

I thought it might be because of the file path having two slashes in it (see screenshot): image

Why is there a double-slash in the path? I specifically left it off because I thought my initial path should have omitted the trailing \ for the sake of the script.

When I first tried to install with GHCup, the default path was "C:" and then I changed each entry to "C:\Program Files" When I ran GHCup again, the default path had changed to "C:\Program Files" . I noticed the double-slashes in the install and thought that might be the problem, so I removed them for each prompt. But the msys2 installation still tried to use the "C:\Program Files" path, which tells me it wasn't respecting the current value of the base path ("C:\Program Files") and was instead hard-coded to use whatever default is loaded into the program. ---The program must be recording the default path locally in a temporary file, and failing to update that file when it already exists, and it likely writes that file after failing to install. Bad code.

Edited by Ryan Johnson
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information