Ghc-pkg: unable to create: dist / dist-sandbox-XXXXXXXX / package.conf.inplace already exists

I just updated to version 1.2.2.0.0. I created a new sandbox and added a link to another local package:

cabal sandbox add-source /home/amy/néal/créatúr-wains

Then I tried to install the dependencies:

cabal install --dep

But when he got to the part where he tried to build my local package, I received an error message:

Configuring creatur-wains-4.1.1...
Building creatur-wains-4.1.1...
ghc-pkg: cannot create: dist/dist-sandbox-5cb45741/package.conf.inplace already exists

I get the same result if I try to install this package with cabal install creatur-wains. I did not have this problem with earlier cabal versions. How can i fix this?

+4
source share
1 answer

This is a known issue https://github.com/haskell/cabal/issues/2301 . Workaround:

  • , (/home/amy/néal/créatúr-wains, ).
  • (cabal install).
  • . cabal install .
+3

Source: https://habr.com/ru/post/1570324/


All Articles