File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -133,17 +133,22 @@ The scoop package is not officially maintained by golangci team.
133
133
### Docker
134
134
135
135
``` bash
136
- docker run --rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
136
+ docker run --rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run
137
137
```
138
138
139
- Preserving cache between consecutive runs :
139
+ Colored output :
140
140
``` bash
141
- docker run -- rm -v $( pwd) :/app -v ~ /.cache/golangci-lint/{.LatestVersion}:/root/.cache - w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
141
+ docker run -t -- rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run
142
142
```
143
143
144
- Colored output :
144
+ Preserving caches between consecutive runs :
145
145
``` bash
146
- docker run -t --rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
146
+ docker run --rm -t -v $( pwd) :/app -w /app \
147
+ --user $( id -u) :$( id -g) \
148
+ -v $( go env GOCACHE) :/.cache/go-build -e GOCACHE=/.cache/go-build \
149
+ -v $( go env GOMODCACHE) :/.cache/mod -e GOMODCACHE=/.cache/mod \
150
+ -v ~ /.cache/golangci-lint:/.cache/golangci-lint -e GOLANGCI_LINT_CACHE=/.cache/golangci-lint \
151
+ golangci/golangci-lint:{.LatestVersion} golangci-lint run
147
152
```
148
153
149
154
### Install from Sources
You can’t perform that action at this time.
0 commit comments