From ccb5bd03d169804f5ca3266b48432cda973c1aaf Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 25 Mar 2021 23:07:22 +0100 Subject: [PATCH] docs: add cache directory information. (#1871) --- docs/src/docs/usage/configuration.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/docs/usage/configuration.mdx b/docs/src/docs/usage/configuration.mdx index 4a18b51757de..00f17f504a14 100644 --- a/docs/src/docs/usage/configuration.mdx +++ b/docs/src/docs/usage/configuration.mdx @@ -54,3 +54,9 @@ than the default and have more strict settings: ```yaml { .GolangciYaml } ``` + +## Cache + +GolangCI-Lint stores its cache in the [default user cache directory](https://golang.org/pkg/os/#UserCacheDir). + +You can override the default cache directory with the environment variable `GOLANGCI_LINT_CACHE`; the path must be absolute.