ansible-navigator
ansible-navigator copied to clipboard
runner artifact rotation only works with user specified artifact directory
this is because a new directory is used every time based on /tmp/ansible-navigator-{uuid}
related to: https://github.com/ansible/ansible-navigator/pull/496
Related to #501
Move the the runner artifact to path set by XDG_CACHE as a default (similar to collection doc cache) and remove {uuid} to allow for rotation to work properly.
or XDG_DATA_HOME since the files don't really need to be "cached" for use by navigator later:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
There is a single base directory relative to which user-specific state data should be written. This directory is defined by the environment variable
$XDG_STATE_HOME.
The
$XDG_STATE_HOMEcontains state data that should persist between (application) restarts, but that is not important or portable enough to the user that it should be stored in$XDG_DATA_HOME. It may contain:
actions history (logs, history, recently used files, …)
current state of the application that can be reused on a restart (view, layout, open files, undo history, …)
We need to be sure 2 instances of navigator don't collide after the navigator provided UUI in the path is gone