Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to prevent GHC panic when building from scratch on GHC `8.10.…
…7`. (#4298) This PR attempts to prevent a GHC panic when building `cardano-wallet-primitive` from scratch on GHC `8.10.7`. Without this PR, `cabal clean && cabal build all` can fail with the following error: ```hs Linking /home/jsk/projects/input-output-hk/cardano-wallet-0/dist-newstyle/build/x86_64-linux/ghc-8.10.7/cardano-api-extra-2023.7.18/t/test/build/test/test ... ghc: panic! (the 'impossible' happened) (GHC version 8.10.7: getPackageDetails: couldn't find package cardano-wallet-primitive-2023.7.18-inplace Call stack: CallStack (from HasCallStack): callStackDoc, called at compiler/utils/Outputable.hs:1179:37 in ghc:Outputable pprPanic, called at compiler/main/Packages.hs:434:14 in ghc:Packages ``` This particular panic seems to emanate from the following location: https://github.com/ghc/ghc/blob/1f02b7430b2fbab403d7ffdde9cfd006e884678e/compiler/main/Packages.hs#L431-L434
- Loading branch information