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

ghcup set is not run when the desired ghc version is found in the cache #36

@avh4

Description

@avh4

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions