mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-01 17:09:18 -04:00
doc: cache preserving and colored output on docker runs (#3377)
This commit is contained in:
parent
d0b2463fd7
commit
f6f81df4ce
1 changed files with 10 additions and 0 deletions
|
@ -75,6 +75,16 @@ sudo port install golangci-lint
|
|||
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
|
||||
```
|
||||
|
||||
Preserving cache between consecutive runs:
|
||||
```sh
|
||||
docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/{.LatestVersion}:/root/.cache -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
|
||||
```
|
||||
|
||||
Colored output:
|
||||
```sh
|
||||
docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
|
||||
```
|
||||
|
||||
### Linux and Windows
|
||||
|
||||
```sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue