Skip to content

new-build runs into internal error after deleting from store #5290

Closed
@libeako

Description

@libeako

I was playing with the new-build command. I managed to build with it a project. This built a dependency [zlib] into ~/.cabal/store/ghc-8.2.2. Then i deleted this newly created zlib folder from the store. Then ran cabal new-build again on my project and got the following output :

In order, the following will be built:
 - zlib-0.6.2 (lib) (requires build)
internal error in InstallPlan.completed
CallStack (from HasCallStack):
  error, called at ./Distribution/Client/InstallPlan.hs:261:25 in main:Distribution.Client.InstallPlan

When i put the deleted package folder back into ~/.cabal/store/ghc-8.2.2 then cabal new-build responded with Up to date again.


$ cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.0 of the Cabal library 

My operating system is NixOS 18.03.132083.06c576b0525 (Impala)

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