From 40dcee0991c3bd33b657bb77aa1f2f46d69cc0e2 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 15 Apr 2026 03:56:34 +0000 Subject: [PATCH] chore(deps): upgrade golangci-lint from v2.10.1 to v2.11.4 (#821) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Bump golangci-lint from v2.10.1 to v2.11.4 - Remove unused `//nolint:revive` directive on metrics package declaration (detected by stricter nolintlint in new version) ## Changes between v2.10.1 and v2.11.4 - **v2.11.0** — Multiple linter dependency upgrades, Go 1.26 support - **v2.11.2** — Bug fix for `fmt` with path - **v2.11.3** — gosec update - **v2.11.4** — Dependency updates (sqlclosecheck, noctx, etc.) No breaking changes. Reviewed-on: https://gitea.com/gitea/act_runner/pulls/821 Co-authored-by: Bo-Yi Wu Co-committed-by: Bo-Yi Wu --- Makefile | 2 +- internal/pkg/metrics/server.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e0b3dd59..91fc4cd8 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ DOCKER_TAG ?= nightly DOCKER_REF := $(DOCKER_IMAGE):$(DOCKER_TAG) DOCKER_ROOTLESS_REF := $(DOCKER_IMAGE):$(DOCKER_TAG)-dind-rootless -GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.10.1 +GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.4 GOVULNCHECK_PACKAGE ?= golang.org/x/vuln/cmd/govulncheck@v1 ifneq ($(shell uname), Darwin) diff --git a/internal/pkg/metrics/server.go b/internal/pkg/metrics/server.go index 8195e8b7..44a58bcd 100644 --- a/internal/pkg/metrics/server.go +++ b/internal/pkg/metrics/server.go @@ -1,7 +1,7 @@ // Copyright 2026 The Gitea Authors. All rights reserved. // SPDX-License-Identifier: MIT -package metrics //nolint:revive // "metrics" is the conventional package name for Prometheus instrumentation; runtime/metrics stdlib is not used here. +package metrics import ( "context"