From 02f0766a790928b0a448bb80947cd5fc4d71afbf Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 23 Feb 2026 10:13:48 +0100 Subject: [PATCH] update golangci-lint to v2.10.1 And remove one false positive comment that got fixed as it seems like. Signed-off-by: Paul Holzinger --- Makefile | 2 +- libpod/oci_conmon_linux.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a6112c01c4..def0bc5aef 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,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 := 2.9.0 +GOLANGCI_LINT_VERSION := 2.10.1 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 diff --git a/libpod/oci_conmon_linux.go b/libpod/oci_conmon_linux.go index 8ef84f0cbc..bb80700d69 100644 --- a/libpod/oci_conmon_linux.go +++ b/libpod/oci_conmon_linux.go @@ -80,7 +80,6 @@ func (r *ConmonOCIRuntime) createRootlessContainer(ctr *Container, restoreOption var parentMount string for dir := filepath.Dir(rootPath); ; dir = filepath.Dir(dir) { if m, found := byMountpoint[dir]; found { - //nolint:staticcheck // false positive?! it claims the value of parentMount is not used but we use it below for the mount parentMount = dir for o := range strings.SplitSeq(m.Optional, ",") { opt := strings.Split(o, ":")