From 2f5c76ba2497a11771e48d0a60c51b3c96b26507 Mon Sep 17 00:00:00 2001 From: "pruthvi@2004" <165915900+2004Pruthvi@users.noreply.github.com> Date: Fri, 3 Apr 2026 11:36:36 +0530 Subject: [PATCH 1/2] chore: modernize linter config and rename mnd (formerly gomnd) Signed-off-by: pruthvi@2004 <165915900+2004Pruthvi@users.noreply.github.com> --- .golangci.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2b9fbf79..e4bbf2c6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -127,7 +127,7 @@ issues: exclude-rules: - path: _test\.go linters: - - gomnd + - mnd # https://github.com/go-critic/go-critic/issues/926 - linters: @@ -135,16 +135,4 @@ issues: text: "unnecessaryDefer:" run: - skip-dirs: - - test/testdata_etc - - internal/cache - - internal/renameio - - internal/robustio timeout: 5m - -# golangci.com configuration -# https://github.com/golangci/golangci/wiki/Configuration -service: - golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly - prepare: - - echo "here I can run custom commands, but no preparation needed for this repo" From 3e7bfefc6b46ee3cf54167edefe038b963f1e1aa Mon Sep 17 00:00:00 2001 From: "pruthvi@2004" <165915900+2004Pruthvi@users.noreply.github.com> Date: Thu, 9 Apr 2026 11:51:38 +0530 Subject: [PATCH 2/2] ci: upgrade golangci-lint to v2 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6d8d138..775d3540 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: uses: golangci/golangci-lint-action@v6 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.62 + version: v2.0.0 # Optional: working directory, useful for monorepos # working-directory: somedir @@ -134,4 +134,4 @@ jobs: export KUBECONFIG="${HOME}/.kube/config" echo "environment-kubeconfig:" ${KUBECONFIG} GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go test -v ./... - \ No newline at end of file +