Skip to content

Commit 1ccbc01

Browse files
author
golangci
authored
Update README.md
1 parent 06624ba commit 1ccbc01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,13 @@ By doing this you won't create new issues in code and can smoothly fix existing
361361
A: You have 2 choices:
362362
1. Use [GolangCI](https://golangci.com): this service is highly integrated with GitHub (issues are commented in the pull request) and uses a `golangci-lint` tool. For configuration use `.golangci.yml` (or toml/json).
363363
2. Use custom CI: just run `golangci-lint` in CI and check exit code. If it's non-zero - fail the build. The main disadvantage is that you can't see found issues in pull request code and should view build log, then open needed source file to see a context.
364+
If you'd like to vendor `golangci-lint` to fix it's version run:
365+
```bash
366+
go get -u github.com/golang/dep/cmd/dep
367+
dep init
368+
dep ensure -v -add github.com/golangci/golangci-lint/cmd/golangci-lint
369+
```
370+
And in CI run next command to install vendored `golangci-lint`: `go install ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint/`.
364371

365372
**Q: `golangci-lint` doesn't work**
366373
1. Update it: `go get -u github.com/golangci/golangci-lint/cmd/golangci-lint`

0 commit comments

Comments
 (0)