Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swamp-agr opened this issue Jan 8, 2021 · 1 comment
Open

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

swamp-agr opened this issue Jan 8, 2021 · 1 comment

Comments

@swamp-agr
Copy link
Contributor

  • 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
@swamp-agr
Copy link
Contributor Author

swamp-agr commented Jan 8, 2021

ghc-pkg pointed to local package database directory instead of single file seems to resolve it. However, several cases are still failing.

fay-tests -package-conf ./dist-newstyle/packagedb/ghc-8.8.4 -base-path ./fay-base/src
...
15 out of 268 tests failed (95.12s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant