Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Avoid polluting user home directory with .ansibullbot #1632

Open
ssbarnea opened this issue Feb 14, 2022 · 2 comments
Open

Avoid polluting user home directory with .ansibullbot #1632

ssbarnea opened this issue Feb 14, 2022 · 2 comments

Comments

@ssbarnea
Copy link
Member

.ansibullbot folder is a cache folder so it should be stored in XDG cache location, ~/.cache and avoid polluting user home directory.

If needed, please consult https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

@mkrizek
Copy link
Collaborator

mkrizek commented Feb 14, 2022

FWIW note that --cachedir is how you can configure the path where cache is stored, it defaults to '~/.ansibullbot/cache.

@ssbarnea
Copy link
Member Author

We should update it to respect the spec, likely to ~/.cache/ansibullbot. I do know that ansible-core is also misbehaving but other tools that we have already ensures they follow the XDG spec (navigator, linter, molecule) and I will not be surprised to also see core doing the same.

The correct implementation looks like https://github.com/ansible-community/ansible-lint/blob/34a27984616e1872a53297af6a7a4ea2b672c4f8/src/ansiblelint/__main__.py#L110-L112

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants