Skip to content

Commit 26480b2

Browse files
nawaSeigeC
authored andcommitted
doc: cache preserving and colored output on docker runs (golangci#3377)
1 parent 0b58eb6 commit 26480b2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/docs/usage/install/index.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ sudo port install golangci-lint
7575
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
7676
```
7777

78+
Preserving cache between consecutive runs:
79+
```sh
80+
docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/{.LatestVersion}:/root/.cache -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
81+
```
82+
83+
Colored output:
84+
```sh
85+
docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
86+
```
87+
7888
### Linux and Windows
7989

8090
```sh

0 commit comments

Comments
 (0)