Skip to content

Fix ghc-pkg issue while running tests on cabal >= 3.2.0.0 #470

Description

@swamp-agr
  • GHC: 8.8.4
  • cabal-install: 3.2.0.0

With substituted -package-conf argument:

fay-tests -package-conf ./dist-newstyle/packagedb/ghc-8.8.4/fay-base-0.21.1.1-inplace.conf
...
    tests/whereBind3.hs:                               FAIL
      Exception: ghc-pkg describe error:
      ghc-pkg: ghc no longer supports single-file style package databases (./dist-newstyle/packagedb/ghc-8.8.4/fay-base-0.21.1.1-inplace.conf) use 'ghc-pkg init'to create the database with the correct format.

      GHC package manager version 8.8.4

      CallStack (from HasCallStack):
        error, called at src/Fay/Compiler/Packages.hs:74:24 in fy-0.24.1.0-ee9f8930:Fay.Compiler.Packages

Without arguments:

fay-tests
...
    tests/whereBind3.hs:                               FAIL
      Exception: ghc-pkg describe error:
      Timestamp 2021-01-02 17:48:09.931464101 UTC for $HOME/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/package.conf.d/package.cache
      ghc-pkg: cannot find package fay-base

      GHC package manager version 8.8.4
      using cache: $HOME/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/package.conf.d/package.cache
      db stack: ["$HOME/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/package.conf.d"]
      flag db stack: ["$HOME/.ghcup/ghc/8.8.4/lib/ghc-8.8.4/package.conf.d"]

      CallStack (from HasCallStack):
        error, called at src/Fay/Compiler/Packages.hs:74:24 in fy-0.24.1.0-ee9f8930:Fay.Compiler.Packages

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions