diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b4276d63d91..e242e427bf8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -21,7 +21,7 @@ jobs: - name: Run linter uses: golangci/golangci-lint-action@v3 with: - version: v1.51 + version: v1.54 only-new-issues: true # Show only new issues if it's a pull request yamllint: diff --git a/Makefile b/Makefile index f67cd5724fd..c3db5404eaf 100644 --- a/Makefile +++ b/Makefile @@ -96,7 +96,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint golangci-lint: @[ -f $(GOLANGCI_LINT) ] || { \ set -e ;\ - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.51.2 ;\ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.54.2 ;\ } .PHONY: apidiff diff --git a/cmd/main.go b/cmd/main.go index 55621a857a7..6dd4fc8d23a 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -27,6 +27,8 @@ import ( kustomizecommonv1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v1" kustomizecommonv2alpha "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v2" "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang" + + //nolint:staticcheck declarativev1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/declarative/v1" deployimagev1alpha1 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/deploy-image/v1alpha1" golangv2 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/v2"