Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Setting GHC/Cabal versions doesn't work with macOS #43

Open
johnjcamilleri opened this issue Nov 9, 2020 · 1 comment
Open

Setting GHC/Cabal versions doesn't work with macOS #43

johnjcamilleri opened this issue Nov 9, 2020 · 1 comment

Comments

@johnjcamilleri
Copy link

Take this workflow file:

name: Main
on: push
jobs:
  main:
    runs-on: macos-latest
    steps:
    - uses: actions/setup-haskell@v1.1
      with:
        ghc-version: 8.6.5
        cabal-version: 2.4
    - run: ghc --version
    - run: cabal --version

The output I get when running the action is:

Run actions/setup-haskell@v1.1
Preparing to setup a Haskell environment
Resolved 2.4 to 2.4.1.0
Installing ghc version 8.6.5
Installing cabal version 2.4.1.0
Setting up cabal
Run ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.2
Run cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library 

When I try replacing macos-latest with ubuntu-latest, I get the output I expect:

Run ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
Run cabal --version
cabal-install version 2.4.1.0
compiled using version 2.4.1.0 of the Cabal library 

You can see my MWE in action here.

@johnjcamilleri
Copy link
Author

I see this has already been discussed in #21 and fixed in #22, so I was confused as to why I was still getting this behaviour. I changed the action version from v1.1 to v1 and it seemed to effect the GHC version, but not the Cabal version:

Run ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
Run cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library 

See this workflow run.

expipiplus1 added a commit to expipiplus1/vulkan that referenced this issue Nov 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant