From ddd70ca59baa7b16f69ed9dcb0a709f443bdf015 Mon Sep 17 00:00:00 2001 From: mgianluc Date: Tue, 11 Jun 2024 16:03:54 +0200 Subject: [PATCH] Prepare for dev to main merge Post release v0.32.0 --- .golangci.yaml | 12 ++++-------- Makefile | 2 +- go.mod | 4 ++-- go.sum | 8 ++++---- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 73fcd5f..f2b3dc3 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -36,10 +36,7 @@ linters-settings: goimports: local-prefixes: github.com/projectsveltos gomnd: - settings: - mnd: - # don't include the "operation" and "assign" - checks: argument,case,condition,return + checks: argument,case,condition,return gomodguard: # Although this is almost empty, we will evolve the list below with the # modules we shouldn't use for technical and/or security reasons. @@ -51,7 +48,7 @@ linters-settings: # Don't merge replace directives using local path. local_replace_directives: true govet: - check-shadowing: true + shadow: true settings: printf: funcs: @@ -132,6 +129,7 @@ linters: - typecheck - unconvert - unparam + - unused - whitespace # don't enable: @@ -176,6 +174,4 @@ run: allow-parallel-runners: true # Timeout for analysis timeout: 5m - # files to skip: they will be analyzed, but issues from them won't be reported. - skip-dirs: - - cmd/example/gen + diff --git a/Makefile b/Makefile index 339aa5b..4fab4b3 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ GOIMPORTS := $(TOOLS_BIN_DIR)/goimports GOLANGCI_LINT := $(TOOLS_BIN_DIR)/golangci-lint GINKGO := $(TOOLS_BIN_DIR)/ginkgo -GOLANGCI_LINT_VERSION := "v1.55.2" +GOLANGCI_LINT_VERSION := "v1.57.2" KUSTOMIZE_VER := v4.5.2 KUSTOMIZE_BIN := kustomize diff --git a/go.mod b/go.mod index 25093a5..b91ba14 100644 --- a/go.mod +++ b/go.mod @@ -15,8 +15,8 @@ require ( k8s.io/klog/v2 v2.120.1 k8s.io/kubectl v0.30.1 k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 - sigs.k8s.io/cluster-api v1.7.2 - sigs.k8s.io/controller-runtime v0.18.3 + sigs.k8s.io/cluster-api v1.7.3 + sigs.k8s.io/controller-runtime v0.18.4 ) require ( diff --git a/go.sum b/go.sum index dfad716..e106753 100644 --- a/go.sum +++ b/go.sum @@ -190,10 +190,10 @@ k8s.io/kubectl v0.30.1 h1:sHFIRI3oP0FFZmBAVEE8ErjnTyXDPkBcvO88mH9RjuY= k8s.io/kubectl v0.30.1/go.mod h1:7j+L0Cc38RYEcx+WH3y44jRBe1Q1jxdGPKkX0h4iDq0= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0 h1:jgGTlFYnhF1PM1Ax/lAlxUPE+KfCIXHaathvJg1C3ak= k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= -sigs.k8s.io/cluster-api v1.7.2 h1:bRE8zoao7ajuLC0HijqfZVcubKQCPlZ04HMgcA53FGE= -sigs.k8s.io/cluster-api v1.7.2/go.mod h1:V9ZhKLvQtsDODwjXOKgbitjyCmC71yMBwDcMyNNIov0= -sigs.k8s.io/controller-runtime v0.18.3 h1:B5Wmmo8WMWK7izei+2LlXLVDGzMwAHBNLX68lwtlSR4= -sigs.k8s.io/controller-runtime v0.18.3/go.mod h1:TVoGrfdpbA9VRFaRnKgk9P5/atA0pMwq+f+msb9M8Sg= +sigs.k8s.io/cluster-api v1.7.3 h1:DsSRxsA+18jxLqPAo29abZ9kOPK1/xwhSuQb/MROzSs= +sigs.k8s.io/cluster-api v1.7.3/go.mod h1:V9ZhKLvQtsDODwjXOKgbitjyCmC71yMBwDcMyNNIov0= +sigs.k8s.io/controller-runtime v0.18.4 h1:87+guW1zhvuPLh1PHybKdYFLU0YJp4FhJRmiHvm5BZw= +sigs.k8s.io/controller-runtime v0.18.4/go.mod h1:TVoGrfdpbA9VRFaRnKgk9P5/atA0pMwq+f+msb9M8Sg= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo= sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0= sigs.k8s.io/structured-merge-diff/v4 v4.4.1 h1:150L+0vs/8DA78h1u02ooW1/fFq/Lwr+sGiqlzvrtq4=