Caching issue with conditionals in project files #8772
Labels
re: conditional
About conditional declarations in cabal files(`if`)
re: project-file
Concerning cabal.project files
type: bug
Describe the bug
There seems to be a cache invalidation issue when there are conditionals in
cabal.project
files.Changing the build configuration (eg ghc version) should invaldate the cache but it appears not to.
To Reproduce
Set up a project with 2 packages, one that builds with ghc version A, the other builds with ghc-version B.
Reproducing example here: https://github.com/wz1000/cabal-bug
Expected behavior
The build
-w ghc 9.4
should succeed without having to deletedist-newstyle
System information
cabal
,ghc
versions: cabal-install 3.8.1.0The text was updated successfully, but these errors were encountered: