From 2474d6f5265af5677d8f2614b2c6b4f749296b91 Mon Sep 17 00:00:00 2001 From: Alex Plekhanov Date: Tue, 7 Dec 2021 01:54:03 +0100 Subject: [PATCH] Fixed documentation for cache-dir location in case of xdg --- doc/03-cli.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index 6722fa8b3..3ddc9b76e 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -997,8 +997,11 @@ directory to something other than `vendor/bin`. 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. -By default, it points to `$COMPOSER_HOME/cache` on \*nix and macOS, and -`C:\Users\\AppData\Local\Composer` (or `%LOCALAPPDATA%/Composer`) on Windows. +By default, it points to `C:\Users\\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