diff options
| author | Greg Steuck <greg@nest.cx> | 2020-04-25 14:14:59 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-04-26 04:42:23 +0200 |
| commit | 32c0bff1a887caf206ddd5ea1a8ae9df8dd166f4 (patch) | |
| tree | b3a8552a2731adb8e67fcd4c5293888741b1abf0 | |
| parent | b8bb8e5f8eb6ae928f08698df222d4e5e2b74c2d (diff) | |
Makefile: pin golangci-lint version
Used the recipe from https://github.com/golangci/golangci-lint
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -339,8 +339,14 @@ install_prerequisites: sudo apt-get install -y -q g++-mips64el-linux-gnuabi64 || true sudo apt-get install -y -q ragel clang-format go get -u golang.org/x/tools/cmd/goyacc \ - github.com/golangci/golangci-lint/cmd/golangci-lint \ github.com/dvyukov/go-fuzz/go-fuzz-build + # Runs golangci-lint when go is new enough. Old versions get a + # free pass (except on CI which has newer go version). + if [ "$$(go version)" \> "go version go1.12" ]; then \ + GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.25.0 ; \ + else \ + ln -sf /bin/true $$(go env GOPATH)/bin/golangci-lint ; \ + fi check_copyright: ./tools/check-copyright.sh |
