Repository navigation
Conversation
|
Use the cabal major version than adhoc v2, cache format changes every major release anyway?
… On 27 Jul 2019, at 14.53, Daniel Gröber ***@***.***> wrote:
Currently 2.4.1.0 and master/3.0 fight over the global index cache. Every time one switches between the versions you get:
Warning: Parsing the index cache failed (Unknown encoding for constructor).
Trying to regenerate the index cache...
[takes 30sec or so]
and it takes just long enough to be really annoying.
Here's my proposed solution: just rename the index cache file.
Please include the following checklist in your PR:
Patches conform to the coding conventions.
Any changes that could be relevant to users have been recorded in the changelog.
The documentation has been updated, if necessary.
Please also shortly describe how you tested your change. Bonus points for added tests!
You can view, comment on, or merge this pull request online at:
#6164
Commit Summary
Fix cabal-install fighting over index cache with old versions
File Changes
M cabal-install/Distribution/Client/IndexUtils.hs (4)
Patch Links:
https://github.com/haskell/cabal/pull/6164.patch
https://github.com/haskell/cabal/pull/6164.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Does it though? I'd rather do this only when it is necessary and not litter everything with new cache files on each release. |
|
my point is: the versioning should be automatic, if it's manual, one will forget to update it. If version of (FWIW, |
|
Totally agree this should be automatic. I didn't realise this was fesible though but since there's an existing solution to that problem with Binary instances I'll see if I can spin a PR to integrate this. |
|
I think this was fixed for good by #6255 |
|
cabal-3.2 and cabal-2.4 still fight over the index cache. |
Currently 2.4.1.0 and master/3.0 fight over the global index cache. Every time one switches between the versions you get:
and it takes just long enough to be really annoying.
Here's my proposed solution: just rename the index cache file.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!