You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Solver failure on 3.0 with distsdir from 2.4.1.0 due to outdated "compiler" cache #6163
When running v2-build from the current 3.0 branch in a project with any other-extensions declared and where the project was last built with cabal-install-2.4.1.0 a solver failure will occur.
It seems to me the dist-newstyle/cache/compiler cache is not getting invalidated even though the new cabal version expects more info to be in there. If I remove that file everything is fine.
To Reproduce
Steps to reproduce the behavior:
$ cabal init -m -n -p repro --is-executable
$ echo ' other-extensions: NondecreasingIndentation' >> repro.cabal
$ rm -r dist-newstyle
$ cabal-2.4.1.0 v2-build
$ cabal-3.0.0.0 v2-build # solver failure
Warning: Parsing the index cache failed (Unknown encoding for constructor).
Trying to regenerate the index cache...
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] next goal: repro (user goal)
[__0] rejecting: repro-0.1.0.0 (conflict: requires NondecreasingIndentation)
[__0] fail (backjumping, conflict set: repro)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: repro
$ rm dist-newstyle/cache/compiler
$ cabal-3.0.0.0 v2-build # works
Seems this might actually be a problem with the NondecreasingIndentation extension specifically or at least some subset of options. DeriveFunction doesn't trigger this but ImpredicativeTypes also does.
Activity
DanielG commentedon Jul 27, 2019
Seems this might actually be a problem with the
NondecreasingIndentationextension specifically or at least some subset of options.DeriveFunctiondoesn't trigger this butImpredicativeTypesalso does.My guess would be 3f497f2 is related though.
Fix haskell#6163, compiler cache fuckup
Fix haskell#6163, compiler cache fuckup
TomMD commentedon Aug 28, 2019
I've seen similar behavior but with
ViewPatterns:This is when using cabal-install 3.0.0.0 and new-test on a project that was previously driven using cabal 2.4.1.0.
hvr commentedon Aug 28, 2019
Duplicate of #6099
(see specifically my comment #6099 (comment) on how to fix this)
23Skidoo commentedon Oct 16, 2019
Closing in favour of #6099.