haskell / actions

Github actions for Haskell CI
147 stars 54 forks source link

Fix #210: set `store-dir` in `.cabal/config` to dodge cabal 3.10 XDG #213

Closed andreasabel closed 1 year ago

andreasabel commented 1 year ago

We set the store-dir (outputs.cabal-store) explicitly in the cabal configuration file because cabal 3.10 has some context-dependent default for it: If ~/.cabal is not present, it uses the new XDG layout, otherwise the legacy layout.

Update: Also need to create ~/.cabal to avoid XDG fallback, so we create ~/.cabal/bin. Likely this makes the "set store-dir" patch obsolete, but we keep it for uniformity (it anyway happens on Windows, now on all platforms).

Closes #210.