diff --git a/.github/workflows/dapr_cli.yaml b/.github/workflows/dapr_cli.yaml index 5c824295..bc019e99 100644 --- a/.github/workflows/dapr_cli.yaml +++ b/.github/workflows/dapr_cli.yaml @@ -30,7 +30,7 @@ jobs: runs-on: ${{ matrix.os }} env: GOVER: 1.19.6 - GOLANG_CI_LINT_VER: v1.49.0 + GOLANG_CI_LINT_VER: v1.51.2 GOOS: ${{ matrix.target_os }} GOARCH: ${{ matrix.target_arch }} GOPROXY: https://proxy.golang.org diff --git a/.golangci.yml b/.golangci.yml index b403d424..6e989ca6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -24,6 +24,7 @@ run: skip-dirs: - ^pkg.*client.*clientset.*versioned.* - ^pkg.*client.*informers.*externalversions.* + - pkg.*mod.*k8s.io.* # which files to skip: they will be analyzed, but issues from them # won't be reported. Default value is empty list, but there is @@ -244,7 +245,7 @@ linters: - goerr113 - nlreturn - exhaustive - - gci + - gci - noctx - exhaustivestruct - exhaustruct diff --git a/pkg/standalone/uninstall.go b/pkg/standalone/uninstall.go index 21ce3272..11fe166e 100644 --- a/pkg/standalone/uninstall.go +++ b/pkg/standalone/uninstall.go @@ -111,8 +111,10 @@ func Uninstall(uninstallAll bool, dockerNetwork string, containerRuntime string, return nil } + // TODO move to use errors.Join once we move to go 1.20. for _, e := range containerErrs { - err = fmt.Errorf("%w \n %s", err, e) + // For 1.19 only one %w is allowed. + err = fmt.Errorf("%w \n %s", err, e) //nolint: errorlint } return err }