ghcup set is not run when the desired ghc version is found in the cache
avh4 opened this issue · 0 comments
avh4 commented
I am having this issue on a MacOS github hosted runner with this action:
- uses: actions/setup-haskell@v1.1
name: Setup Haskell
id: setup-haskell
with:
ghc-version: 8.8.4
The output from setup-haskell is:
Preparing to setup a Haskell environment
Resolved latest to 3.2.0.0
▼ Installing ghc version 8.8.4
Found ghc 8.8.4 in cache at path /Users/runner/.ghcup/ghc/8.8.4/bin. Setup successful.
▶︎ Installing cabal version 3.2.0.0
▶︎ Setting up cabal
But running ghcup list
later in the workflow shows
Tool Version Tags Notes
✗ ghc 7.10.3 base-4.8.2.0
... (many other version) ...
✗ ghc 8.8.3 base-4.13.0.0
✓ ghc 8.8.4 recommended,base-4.13.0.0
✗ ghc 8.10.1 base-4.14.0.0
✔✔ ghc 8.10.2 latest,base-4.14.1.0
✗ cabal 2.4.1.0
✗ cabal 3.0.0.0
✔✔ cabal 3.2.0.0 latest,recommended
✗ cabal 3.4.0.0-rc3 prerelease
✗ ghcup 0.1.11 latest,recommended
and any ghc commands use ghc-8.10.2 instead of the requested version (8.8.4).