From 04f971c84be907b90edfdd409f84b892a3586705 Mon Sep 17 00:00:00 2001 From: alwqx Date: Wed, 8 May 2024 00:49:40 +0800 Subject: [PATCH] fix golangci workflow missing gofmt and goimports (#4190) --- .gitattributes | 1 + .github/workflows/test.yaml | 2 +- .golangci.yaml | 5 ++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitattributes b/.gitattributes index a8436e9c..cc5147f2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ llm/ext_server/* linguist-vendored +*.go text eol=lf \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9a2544b8..313d11cb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -269,7 +269,7 @@ jobs: mkdir -p llm/build/darwin/$ARCH/stub/bin touch llm/build/darwin/$ARCH/stub/bin/ollama_llama_server if: ${{ startsWith(matrix.os, 'macos-') }} - - uses: golangci/golangci-lint-action@v4 + - uses: golangci/golangci-lint-action@v5 with: args: --timeout 8m0s -v test: diff --git a/.golangci.yaml b/.golangci.yaml index 7dec49de..ba8e81c7 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,9 +9,8 @@ linters: - contextcheck - exportloopref - gocheckcompilerdirectives - # FIXME: for some reason this errors on windows - # - gofmt - # - goimports + - gofmt + - goimports - misspell - nilerr - unused