From 8cc2ae68d19b200f4cc0bddcecac50a0761893a3 Mon Sep 17 00:00:00 2001 From: Sam Yuan Date: Thu, 21 Dec 2023 22:17:22 +0800 Subject: [PATCH] try to fix lint issue (#339) * fix lint issue ref https://github.com/golangci/golangci-lint-action/issues/902 Signed-off-by: Sam Yuan * fix up Signed-off-by: Sam Yuan * fix up Signed-off-by: Sam Yuan * fix up Signed-off-by: Sam Yuan --------- Signed-off-by: Sam Yuan --- .github/workflows/golangci-lint.yml | 4 +++- .golangci.yml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ebfb5941..a9a75f84 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,7 +14,9 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: go.mod + - run: go mod download - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.52.2 \ No newline at end of file + version: v1.55.2 + skip-pkg-cache: true \ No newline at end of file diff --git a/.golangci.yml b/.golangci.yml index 874c0854..999ed526 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -36,10 +36,10 @@ linters: disable-all: true enable: - bodyclose - - depguard + #- depguard #- dupl - errcheck - - goconst + #- goconst #- gocritic - gocyclo - gofmt