Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

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

Merged
andreasabel merged 3 commits intomainfrom
xdg-store-dir
Mar 16, 2023
Merged

Fix #210: set store-dir in .cabal/config to dodge cabal 3.10 XDG#213
andreasabel merged 3 commits intomainfrom
xdg-store-dir

Conversation

@andreasabel
Copy link
Member

@andreasabel andreasabel commented Mar 16, 2023

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.

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 not.
@andreasabel andreasabel added re: cache Concerning caching re: cabal On setting up cabal labels Mar 16, 2023
@andreasabel andreasabel added this to the 2.3.6 milestone Mar 16, 2023
@andreasabel andreasabel self-assigned this Mar 16, 2023
@andreasabel andreasabel merged commit d5d2a76 into main Mar 16, 2023
@andreasabel andreasabel deleted the xdg-store-dir branch March 16, 2023 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

re: cabal On setting up cabal re: cache Concerning caching

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Output cabal-store: Use XDG directory structure for cabal 3.10?

1 participant