docs: add cache directory information. (#1871)

This commit is contained in:
Ludovic Fernandez 2021-03-25 23:07:22 +01:00 committed by GitHub
parent bcdfb7f6b1
commit ccb5bd03d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.