Skip to content

Complete migration guide to XDG directory layout #8859

@andreasabel

Description

@andreasabel

Lifted from @mouse07410 's comment:

@athas, could we please get a complete migration guide to XDG?

We currently have:

I would like the table that @mouse07410 requested:

Legacy XDG
~/.cabal/config ~/.config/cabal/config
~/.cabal/bin ~/.local/bin
~/.cabal/store ~/.local/state/cabal/store (?)
~/.cabal/lib ?
~/.cabal/share ?
~/.cabal/packages ?

Also, the docs talk about variables like XDG_CONFIG_HOME but not what their value would be on different systems. E.g. on macOS, these variables seem undefined:

$ echo $XDG_CONFIG_HOME

$

N.B.: I would also be good to get some advice what to cache in CI. E.g. the whole ~/.local/state/cabal or just ~/.local/state/cabal/store (considering that the previous advice was to cache /.cabal/store).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions