From 0b31c710cee3d0ae09e13e25525dc873b25e9134 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 12 Feb 2025 11:39:45 +0100 Subject: [PATCH] update golangci-lint to v1.64.2 - exportloopref is deprecated and deactivated so it should be removed from the disable list. - tenv is deprecated and was replaced by usetesting Signed-off-by: Paul Holzinger (cherry picked from commit 986fc9f465d9bcc1c949c5f3891b73957c92ad80) Signed-off-by: Paul Holzinger --- .golangci.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index d2bf70fb1e..cc02747583 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -61,7 +61,7 @@ linters: - nonamedreturns - exhaustruct # deprecated linters - - exportloopref + - tenv linters-settings: errcheck: check-blank: false diff --git a/Makefile b/Makefile index 079c180777..13fbf13698 100644 --- a/Makefile +++ b/Makefile @@ -62,7 +62,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS} # N/B: This value is managed by Renovate, manual changes are # possible, as long as they don't disturb the formatting # (i.e. DO NOT ADD A 'v' prefix!) -GOLANGCI_LINT_VERSION := 1.63.4 +GOLANGCI_LINT_VERSION := 1.64.2 PYTHON ?= $(shell command -v python3 python|head -n1) PKG_MANAGER ?= $(shell command -v dnf yum|head -n1) # ~/.local/bin is not in PATH on all systems