diff --git a/Makefile b/Makefile index 35a3729..5580438 100755 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PWD = $(shell pwd) # constants # renovate: datasource=github-releases depName=golangci/golangci-lint -GOLANGCI_VERSION = 2.11.4 +GOLANGCI_VERSION = 2.12.1 all: git-hooks tidy ## Initializes all tools out: @@ -36,7 +36,7 @@ out/bin: GOLANGCI_LINT = bin/golangci-lint-$(GOLANGCI_VERSION) $(GOLANGCI_LINT): - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | bash -s -- -b bin v$(GOLANGCI_VERSION) + curl -sSfL https://golangci-lint.run/install.sh | bash -s -- -b bin v$(GOLANGCI_VERSION) @mv bin/golangci-lint "$(@)" lint: fmt $(GOLANGCI_LINT) download ## Lints all code with golangci-lint diff --git a/pkg/renamepvc/renamepvc_test.go b/pkg/renamepvc/renamepvc_test.go index 4ad1649..f9fd348 100644 --- a/pkg/renamepvc/renamepvc_test.go +++ b/pkg/renamepvc/renamepvc_test.go @@ -60,7 +60,7 @@ func TestPVCRename(t *testing.T) { ObjectMeta: metav1.ObjectMeta{Name: "pod", Namespace: "test3"}, Spec: corev1.PodSpec{ Volumes: []corev1.Volume{{ - Name: "test", + Name: "testvol", VolumeSource: corev1.VolumeSource{ PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{ ClaimName: "test3-old", ReadOnly: false,