Skip to content

Stack does not follow the XDG Base Directory Specification #4243

Closed
@rszibele

Description

@rszibele

Stack is one of my favorite build tools and unfortunately it currently does not follow the XDG Base Directory Specification: https://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

My $HOME/.stack folder is currently sitting at around 12GiB (most of which is cache), which requires me to manually check which files I have to back up.

From a quick glance the following files are configuration which would belong in $XDG_CONFIG_HOME/stack:

  • $HOME/.stack/config.yaml
  • $HOME/.stack/global-project/stack.yaml

The files in $HOME/.stack/templates/ probably belong in $XDG_DATA_HOME/stack/templates/, as the user could have his own and therefore could be considered essential.

The other directories seem to only contain cache data which are non-essential and would belong in $XDG_CACHE_HOME/stack.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions