From 75d5e181cf9d162c581e0bf5f0dc7be9a439b3dc Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Fri, 14 Feb 2025 16:59:24 +0100 Subject: [PATCH] upgrade golangci-lint to new version with better support for go1.24.0 Signed-off-by: Andres Taylor --- .github/workflows/static_checks_etc.yml | 2 +- .golangci.yml | 2 +- misc/git/hooks/golangci-lint | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/static_checks_etc.yml b/.github/workflows/static_checks_etc.yml index b7f14688b95..8af08fbb9eb 100644 --- a/.github/workflows/static_checks_etc.yml +++ b/.github/workflows/static_checks_etc.yml @@ -197,7 +197,7 @@ jobs: - name: Install golangci-lint if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.go_files == 'true' - run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.2 + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.5 - name: Clean Env if: steps.skip-workflow.outputs.skip-workflow == 'false' && steps.changes.outputs.go_files == 'true' diff --git a/.golangci.yml b/.golangci.yml index e907f56743b..738538e5779 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -191,4 +191,4 @@ issues: # https://github.com/golangci/golangci/wiki/Configuration service: - golangci-lint-version: 1.52.2 # use the fixed version to not introduce new linters unexpectedly + golangci-lint-version: 1.64.5 # use the fixed version to not introduce new linters unexpectedly diff --git a/misc/git/hooks/golangci-lint b/misc/git/hooks/golangci-lint index 21313316a12..528c243eefb 100755 --- a/misc/git/hooks/golangci-lint +++ b/misc/git/hooks/golangci-lint @@ -14,7 +14,7 @@ # limitations under the License. # Required version of golangci-lint -REQUIRED_VERSION="v1.60.2" +REQUIRED_VERSION="v1.64.5" # Function to compare versions in pure Bash version_greater_or_equal() {