-
Notifications
You must be signed in to change notification settings - Fork 701
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
Per-Version Index Cache in ~/.cabal directory #7502
Comments
No counterindication, as far as I can see. |
That would be an welcome change, specially when developing for cabal, since there are usually multiple cabals involved in the whole compile/run thingy. |
This was discussed and it is not trivial. The Please outline how you would prevent cache corruption. |
Good point about cabal update! Does it do a full rewrite of the index cache file or is it an in-place update? |
The obvious thing to do is to just have |
I think this issue is important to fix, because having several versions of |
Switching between cabal install versions can occur either when developing cabal, or when using nix-shells that bring different versions into scope, among other reasons.
Each time you switch versions, you get
Warning: Parsing the index cache failed
and it needs to regenerate the index cache.This can be tedious and time consuming.
I suggest that cabal store its index cache per-cabal-version rather than always in the same spot, thus helping to more frequently avoid this issue.
The text was updated successfully, but these errors were encountered: