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 <pholzing@redhat.com>
(cherry picked from commit 986fc9f465d9bcc1c949c5f3891b73957c92ad80)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2025-02-12 11:39:45 +01:00
parent fc63a340f3
commit 0b31c710ce
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ linters:
- nonamedreturns
- exhaustruct
# deprecated linters
- exportloopref
- tenv
linters-settings:
errcheck:
check-blank: false

View File

@ -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