Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

fix golangci workflow missing gofmt and goimports (#4190)

alwqx04f971c84be9
diff --git a/.gitattributes b/.gitattributes
index a8436e9cf..cc5147f2d 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 9a2544b81..313d11cbe 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 7dec49ded..ba8e81c73 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