Skip to content

Be more robust to store corruption #4119

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

Open
ezyang opened this issue Nov 18, 2016 · 0 comments
Open

Be more robust to store corruption #4119

ezyang opened this issue Nov 18, 2016 · 0 comments
Labels
cabal-install: nix-local-build re: store-dir On local nix store (option `--store-dir`)

Comments

@ezyang
Copy link
Contributor

ezyang commented Nov 18, 2016

The new-build code assumes that whatever is in .cabal/store is well-formed. However, in some cases the store can get corrupted; for example, if you upgrade to a new version of cabal-install that uses a different format, or if you manually modify files inside the store. In cases like this, new-build works extremely poorly; it will fail in a supremely uninformative way, and users won't have any recourse except to blow their store away and try again. It would be better if cabal-install was coded defensively against problems in the store.

Examples:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cabal-install: nix-local-build re: store-dir On local nix store (option `--store-dir`)
Projects
None yet
Development

No branches or pull requests

2 participants