From d447a36168c04717f9a6227ec87042510fef356c Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Wed, 12 Apr 2023 10:09:30 +0100 Subject: [PATCH] Update linter to 1.51.1 --- .github/workflows/test.yaml | 2 +- CHANGELOG.md | 2 +- README.md | 2 +- integration/cloudbuild/testbase/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5363527f67..497115b1d0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -19,7 +19,7 @@ jobs: - uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0 with: - version: 'v1.50.1' + version: 'v1.51.1' args: ./storage/crdb unit-test: diff --git a/CHANGELOG.md b/CHANGELOG.md index e4f8abfdd1..153cff8a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ ### Misc * Bump Go version from 1.17 to 1.19. -* Updated golangci-lint to v1.50.1 (developers should update to this version) +* Updated golangci-lint to v1.51.1 (developers should update to this version) ## v1.5.1 diff --git a/README.md b/README.md index 3c15e5f46a..76f51fe951 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,7 @@ and tests over the codebase. #### Install [golangci-lint](https://github.com/golangci/golangci-lint#local-installation). ```bash -go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1 +go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1 ``` #### Run code generation, build, test and linters diff --git a/integration/cloudbuild/testbase/Dockerfile b/integration/cloudbuild/testbase/Dockerfile index bd37ac43d6..94759003a4 100644 --- a/integration/cloudbuild/testbase/Dockerfile +++ b/integration/cloudbuild/testbase/Dockerfile @@ -21,7 +21,7 @@ RUN apt-get update && apt-get install -y \ xxd # Install golangci-lint. See docs at: https://golangci-lint.run/usage/install/. -RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 +RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.51.1 # Install CockroachDB, see https://www.cockroachlabs.com/docs/v22.1/install-cockroachdb-linux RUN curl https://binaries.cockroachdb.com/cockroach-v22.1.11.linux-amd64.tgz | tar -xz && cp -i cockroach-v22.1.11.linux-amd64/cockroach /usr/local/bin/