COMPOSER_CACHE_DIR documentation specifies wrong directory for *nix XDG systems #8625
Labels
Milestone
Comments
I think this part of the documentation was forgotten when the XDG specification was implemented. Maybe it is best to not mention the default at all, since it depends on circumstances (which only makes the documentation more confusing IMHO). |
Yes, it currently seems |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation states that the default cache dir on an XDG compatible *nix system is
$XDG_CONFIG_HOME/composer/cache
but composer usesXDG_CACHE_HOME/composer
as default.https://getcomposer.org/doc/03-cli.md#composer-cache-dir quote:
$COMPOSER_HOME
is$XDG_CONFIG_HOME/composer
$COMPOSER_CACHE_DIR
->$COMPOSER_HOME/cache
->$XDG_CONFIG_HOME/composer/cache
$XDG_CACHE_HOME/cache
instead as cache: https://github.com/composer/composer/blob/master/src/Composer/Factory.php#L116The text was updated successfully, but these errors were encountered: