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 }}
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 12, 2020. It is now read-only.
Run mingw64-pkg install zlib
Bash environment variable found, are you sure you installed cabal and msys2 via chocolatey?
At C:\ProgramData\chocolatey\lib\cabal.3.2.0.0\tools\mingw64-pkg.ps1:39 char:3
+ throw ("Bash environment variable found, are you sure you installed ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Bash environmen...via chocolatey?:String) [], RuntimeException
+ FullyQualifiedErrorId : Bash environment variable found, are you sure you installed cabal and msys2 via chocolat
ey?
Error: Process completed with exit code 1.
(with a minimal hello-world of importing the zlib library to make sure I'm using something that needs zlib)
I couldn't get mingw64-pkg working regardless of whether or not I installed msys2 via chocolatey or the action. This is the codepath that is causing it to fail. I'm not quite sure why it's there; although it seems to just be a wrapper around pacman -S $package_name, which would make its functionality equivalent to the setup-msys2 snippet above.
Activity
hasufell commentedon Sep 27, 2020
For cabal, I tried
It failed with
https://github.com/hasufell/stack2cabal/runs/1172870260?check_suite_focus=true#step:7:1
hazelweakly commentedon Oct 1, 2020
This took way too long to figure out, but I think I have a minimal example here:
(with a minimal hello-world of importing the zlib library to make sure I'm using something that needs zlib)
I couldn't get mingw64-pkg working regardless of whether or not I installed msys2 via chocolatey or the action. This is the codepath that is causing it to fail. I'm not quite sure why it's there; although it seems to just be a wrapper around
pacman -S $package_name, which would make its functionality equivalent to the setup-msys2 snippet above.expipiplus1 commentedon Nov 6, 2020
There's nothing Haskell specific about installing system packages.
Cabal or stack just has to be informed about their include/lib locations, and DLL locations added to PATH.
I've been using
pkgconfigliteinstalled by chocolatey for some packages: https://github.com/expipiplus1/vulkan/blob/master/.github/workflows/ci.yml#L63 (in this action I install some dependencies for Cabal and Stack (near the end))