From 6f86367c74e4dba9743af602819113ead09917d9 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:09:46 +0000 Subject: [PATCH 1/2] Update dependency golangci/golangci-lint to v1.63.3 | datasource | package | from | to | | ----------- | ---------------------- | ------- | ------- | | github-tags | golangci/golangci-lint | v1.62.2 | v1.63.3 | Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/lint.yml | 2 +- .pre-commit-config.yaml | 2 +- Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 666c7ba9fd..f478f64acf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -40,7 +40,7 @@ jobs: uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1 with: working-directory: ${{ matrix.directory }} - version: v1.62.2 # renovate: datasource=github-tags depName=golangci/golangci-lint + version: v1.63.3 # renovate: datasource=github-tags depName=golangci/golangci-lint njs-lint: name: NJS Lint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b1f09dc47..38549023a8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - javascript - repo: https://github.com/golangci/golangci-lint - rev: v1.62.2 + rev: v1.63.3 hooks: - id: golangci-lint-full name: golangci-lint-root diff --git a/Makefile b/Makefile index ba4e4f1cac..dda726940f 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ GO_LINKER_FLAGS = $(GO_LINKER_FLAGS_OPTIMIZATIONS) $(GO_LINKER_FlAGS_VARS) # tools versions # renovate: datasource=github-tags depName=golangci/golangci-lint -GOLANGCI_LINT_VERSION = v1.62.2 +GOLANGCI_LINT_VERSION = v1.63.3 # renovate: datasource=docker depName=kindest/node KIND_K8S_VERSION = v1.32.0 # renovate: datasource=github-tags depName=norwoodj/helm-docs From 1485e97465beba9d6941a0860c0d16587e619ce4 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Fri, 3 Jan 2025 12:30:52 -0800 Subject: [PATCH 2/2] Fix lint error --- internal/mode/static/state/resolver/resolver_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mode/static/state/resolver/resolver_test.go b/internal/mode/static/state/resolver/resolver_test.go index be4262e173..e94b810b74 100644 --- a/internal/mode/static/state/resolver/resolver_test.go +++ b/internal/mode/static/state/resolver/resolver_test.go @@ -625,7 +625,7 @@ func bench(b *testing.B, svcNsName types.NamespacedName, list discoveryV1.EndpointSliceList, initSet initEndpointSetFunc, n int, ) { b.Helper() - for i := 0; i < b.N; i++ { + for range b.N { res, err := resolveEndpoints(svcNsName, v1.ServicePort{Port: 80}, list, initSet, dualAddressType) if len(res) != n { b.Fatalf("expected %d endpoints, got %d", n, len(res))