File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -133,17 +133,21 @@ 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
+ Preserving caches between consecutive runs:
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 --rm -v $( pwd) :/app -w /app \
142
+ --user $( id -u) :$( id -g) \
143
+ -v $( go env GOCACHE) :/root/.cache/go-build \
144
+ -v $( go env GOMODCACHE) :/go/pkg/mod \
145
+ golangci/golangci-lint:{.LatestVersion} golangci-lint run
142
146
```
143
147
144
148
Colored output:
145
149
``` bash
146
- docker run -t --rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
150
+ docker run -t --rm -v $( pwd) :/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run
147
151
```
148
152
149
153
### Install from Sources
You can’t perform that action at this time.
0 commit comments