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

After removing some directories in store cabal calls error without proper description. #6060

Open
phadej opened this issue May 27, 2019 · 3 comments

Comments

@phadej
Copy link
Collaborator

phadej commented May 27, 2019

Build profile: -w ghc-7.10.3 -O0
In order, the following will be built (use -v for more details):
 - containers-0.5.11.0 (lib) (requires build)
 - monad-control-0.3.3.0 (lib:monad-control) (requires build)
internal error in InstallPlan.completed
CallStack (from HasCallStack):
  error, called at ./Distribution/Client/InstallPlan.hs:262:25 in main:Distribution.Client.InstallPlan

Note: I'm trying to cleanup somehow inconsitent store because I got

Resolving dependencies...
Build profile: -w ghc-7.10.3 -O0
In order, the following will be built (use -v for more details):
 - async-pool-0.8.0 (lib) (first run)
Configuring library for async-pool-0.8.0..
cabal: The following package dependencies were requested
--dependency='monad-control=monad-control-0.3.3.0-7aba405eb6ac318d507aceb932b2265ec63f2019aadfc5d128d46fcbe3da3be8'
however the given installed package instance does not exist.

There should be a way to repair store, in my use case wiping the whole store is very expensive and isn't really an option in general.

@phadej
Copy link
Collaborator Author

phadej commented Dec 9, 2019

I made a small script to help repairing the store: https://github.com/phadej/cabal-extras#cabal-store-check

Screenshot from 2019-12-09 23-31-52

@jneira
Copy link
Member

jneira commented Jan 2, 2020

Is there a chance to incorporate the feature in cabal? I've tried it for a simple case and it saves me from delete the store nicely

@phadej
Copy link
Collaborator Author

phadej commented Jan 2, 2020

@jneira adding new commands (and their configuration) to cabal-install is not fun that I'd spend my time on it.

New GHC will have ghc-pkg --show-unit-ids (https://gitlab.haskell.org/ghc/ghc/merge_requests/2284), so checking and repairing would be a very simple shell script

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

2 participants