1
0
Fork 0

Merge branch '2.1' into main

* 2.1:
  Fixed documentation for cache-dir location in case of xdg
pull/10318/head
Nils Adermann 2021-12-07 11:21:43 +01:00
commit 09ffabbf6e
1 changed files with 5 additions and 2 deletions

View File

@ -1013,8 +1013,11 @@ directory to something other than `vendor/bin`.
The `COMPOSER_CACHE_DIR` var allows you to change the Composer cache directory, The `COMPOSER_CACHE_DIR` var allows you to change the Composer cache directory,
which is also configurable via the [`cache-dir`](06-config.md#cache-dir) option. which is also configurable via the [`cache-dir`](06-config.md#cache-dir) option.
By default, it points to `$COMPOSER_HOME/cache` on \*nix and macOS, and By default, it points to `C:\Users\<user>\AppData\Local\Composer` (or `%LOCALAPPDATA%/Composer`) on Windows.
`C:\Users\<user>\AppData\Local\Composer` (or `%LOCALAPPDATA%/Composer`) on Windows. On \*nix systems that follow the [XDG Base
Directory Specifications](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html),
it points to `$XDG_CACHE_HOME/composer`. On other \*nix systems and on macOS, it points to
`$COMPOSER_HOME/cache`.
### COMPOSER_CAFILE ### COMPOSER_CAFILE