New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use XDG_CACHE_HOME for caching #1355
Conversation
Related #104 |
7c7e680
to
22c9f52
Compare
[XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html) defines is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME. This commit change directories `cookiecutter_replay` and `cookiecutters` where cookiecutter stores its own data.
22c9f52
to
8641b0f
Compare
@insspb There is a problem with python2.7 32bit from appveyor which failed twice without any explanation. When I added the I propose we keep the -v to see what happens in the future. |
+1 to this idea. |
I removed this feature from 1.7.1 release because it is introduding a breaking change: the My suggestion is that we should merge it just after we release 1.7.1 |
|
Any manual test was made on Windows? |
@luzfcb I am not a big fun of either manual-testing or Windows platform, so you are welcomed to take this challenge. The good part is that we do hae CI/CD running on Windows, and it did not fail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…s locations This allows the ``cookiecutterrc`` file to be read from multiple places: 1) Environ variable ``${COOKIECUTTER_USER_CONFIG_PATH}`` 2) ``${XDG_CONFIG_HOME}/cookiecutter/cookiecutterc`` 3) ``${XDG_CONFIG_HOME}/cookiecutterrc`` 4) ``${HOME}/.cookiecutterrc`` This allows the program to be more conform with the XDG standard. Related: See also cookiecutter#1355, which has similar ideas for the cache (``cookiecutters`` and ``cookiecutter_replay`` folders)
Is this PR dead? |
More or less. While I do not have time to work on it it worth nothing that there is an even older competing PR that tries to do almost the same. I would keep it open until we have a fix merged. Once we have it merged, we can close the other pull requests. |
Closing as dead, I hope someone will implement it. |
XDG Base Directory Specification defines is a single base directory relative to which user-specific non-essential (cached) data should be written. This directory is defined by the environment variable $XDG_CACHE_HOME.
This commit change directories
cookiecutter_replay
andcookiecutters
where cookiecutter stores its own data.