ansibullbot icon indicating copy to clipboard operation
ansibullbot copied to clipboard

Avoid polluting user home directory with .ansibullbot

Open ssbarnea opened this issue 2 years ago • 2 comments

.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

ssbarnea avatar Feb 14 '22 11:02 ssbarnea

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

mkrizek avatar Feb 14 '22 12:02 mkrizek

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

ssbarnea avatar Feb 14 '22 13:02 ssbarnea