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

cabal update fails #4

Open
jhidding opened this issue Dec 2, 2019 · 1 comment
Open

cabal update fails #4

jhidding opened this issue Dec 2, 2019 · 1 comment

Comments

@jhidding
Copy link

jhidding commented Dec 2, 2019

Using the template exactly as it is given,

name: Haskell CI

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-haskell@v1
      with:
        ghc-version: '8.6.5'
        cabal-version: '3.0'
    - name: Install dependencies
      run: |
        cabal update
        cabal install --only-dependencies --enable-tests
    - name: Build
      run: |
        cabal configure --enable-tests
        cabal build
    - name: Run tests
      run: cabal test

I get the following error

Run cabal update
Config file path source is default config file.
Config file /home/runner/.cabal/config not found.
Writing default configuration to /home/runner/.cabal/config
Downloading the latest package list from hackage.haskell.org
cabal: --enable-tests was specified, but tests can't be enabled in a remote
package

##[error]Process completed with exit code 1.
@jhidding
Copy link
Author

jhidding commented Dec 2, 2019

Removing --enable-tests from the template fixes this

tclem pushed a commit that referenced this issue Jun 11, 2020
* fix short-circuit logic for ghcup based installs of ghc

* fix unrecognized user-config option for cabal v2.0

* update dependencies
tclem added a commit that referenced this issue Jun 11, 2020
Fix macos ghcup and cabal flags (#4)
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