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 Jan 5, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
First the action installs GHC (from the ppa) and adds it to the path.
Then it installs cabal from ghcup, and adds it to the path.
The path looks like your-cabal-location:your-ghc-location:$PATH. But the problem is that ghcup installs cabal by default to ~/.ghcup/bin which contains... preinstalled GHCs for github actions. So ~/.ghcup/bin/ghc is v9.2.1 because that's what the github action runners installed last.
(This didn't come up before because almost always cabal and ghc come from the same source). I'll have to see if I can figure out an order-independent way to resolve this. I think the solution is going to be (for now) that I unset a few known things, but I'll have to be careful to not break stuff that's manually/pre-installed :)
Activity
hazelweakly commentedon Nov 4, 2021
Oh this one is fun. Here's what's happening.
The path looks like
your-cabal-location:your-ghc-location:$PATH. But the problem is that ghcup installs cabal by default to~/.ghcup/binwhich contains... preinstalled GHCs for github actions. So~/.ghcup/bin/ghcis v9.2.1 because that's what the github action runners installed last.(This didn't come up before because almost always cabal and ghc come from the same source). I'll have to see if I can figure out an order-independent way to resolve this. I think the solution is going to be (for now) that I unset a few known things, but I'll have to be careful to not break stuff that's manually/pre-installed :)
ncaq commentedon Nov 10, 2021
I had the same problem too.
My solution was to run the following command before setup.