Include the GHC "Project Unit Id" in the cabal store path
commitb055abb58fb414ffebec7d48f142d625907d62ff
authorSimon Hengel <sol@typeful.net>
Thu, 12 Oct 2023 10:18:19 +0000 (12 17:18 +0700)
committerMikolaj <281893+Mikolaj@users.noreply.github.com>
Fri, 19 Jan 2024 11:07:58 +0000 (19 11:07 +0000)
treeebe8fb726ba358a1f75db829326242baa33bd08a
parent9712115d13ed08f653c51847c72c67a310d4a6d9
Include the GHC "Project Unit Id" in the cabal store path

- This allows the use of several **API incompatible builds of the same
  version of GHC** without corrupting the cabal store.
- This relies on the "Project Unit Id" which is available since GHC
  9.8.1, older versions of GHC do not benefit from this change.

[fixes #8114]
Cabal/src/Distribution/Simple/GHC.hs
cabal-install/src/Distribution/Client/CmdHaddockProject.hs
cabal-install/src/Distribution/Client/CmdInstall.hs
cabal-install/src/Distribution/Client/DistDirLayout.hs
cabal-install/src/Distribution/Client/ProjectBuilding/UnpackedPackage.hs
cabal-install/src/Distribution/Client/ProjectPlanning.hs
cabal-install/src/Distribution/Client/Store.hs
cabal-install/tests/UnitTests/Distribution/Client/Store.hs
changelog.d/pr-9326 [new file with mode: 0644]