From 884a660110f2278f416a93bbd219227664079696 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Thu, 25 Mar 2021 22:36:32 +0100 Subject: [PATCH 1/2] docs: add cache directory information. --- 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..dea430e6d844 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 his cache into 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 an absolute path. From 94ee0ed205e698ac0780ccf934a096214d0b6060 Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Thu, 25 Mar 2021 22:51:29 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Alexey Palazhchenko --- docs/src/docs/usage/configuration.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/docs/usage/configuration.mdx b/docs/src/docs/usage/configuration.mdx index dea430e6d844..00f17f504a14 100644 --- a/docs/src/docs/usage/configuration.mdx +++ b/docs/src/docs/usage/configuration.mdx @@ -57,6 +57,6 @@ than the default and have more strict settings: ## Cache -GolangCI-Lint stores his cache into the [default user cache directory](https://golang.org/pkg/os/#UserCacheDir). +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 an absolute path. +You can override the default cache directory with the environment variable `GOLANGCI_LINT_CACHE`; the path must be absolute.