From 3dfd0cbd3ee6d189ccbf7596b90dfcf30b3b9aa3 Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Fri, 18 Oct 2024 10:55:23 -0600 Subject: [PATCH] chore: update golang lint workflow Signed-off-by: Terry Howe --- .github/workflows/golangci-lint.yml | 6 +++--- pkg/iscsilib/iscsi.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 43e4c87b..1c868d71 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -10,10 +10,10 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v5 with: - go-version: ^1.19 + go-version: ^1.22 - uses: actions/checkout@master - name: Run linter uses: golangci/golangci-lint-action@v6 with: - version: v1.54 - args: -E=gofmt,unused,ineffassign,misspell,exportloopref,asciicheck,bodyclose,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s + version: v1.61 + args: -E=gofmt,unused,ineffassign,misspell,copyloopvar,asciicheck,bodyclose,dogsled,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s diff --git a/pkg/iscsilib/iscsi.go b/pkg/iscsilib/iscsi.go index 097a0496..9dc17c84 100644 --- a/pkg/iscsilib/iscsi.go +++ b/pkg/iscsilib/iscsi.go @@ -517,7 +517,7 @@ func GetISCSIDevices(devicePaths []string, strict bool) (devices []Device, err e func lsblk(devicePaths []string, strict bool) (deviceInfo, error) { flags := []string{"-rn", "-o", "NAME,KNAME,PKNAME,HCTL,TYPE,TRAN,SIZE"} command := execCommand("lsblk", append(flags, devicePaths...)...) - klog.V(2).Infof(command.String()) + klog.V(2).Info(command.String()) out, err := command.Output() if err != nil { if ee, ok := err.(*exec.ExitError); ok {