Skip to content

Commit 04f971c

Browse files
authored
fix golangci workflow missing gofmt and goimports (ollama#4190)
1 parent 70edb9b commit 04f971c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
llm/ext_server/* linguist-vendored
2+
*.go text eol=lf

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ jobs:
269269
mkdir -p llm/build/darwin/$ARCH/stub/bin
270270
touch llm/build/darwin/$ARCH/stub/bin/ollama_llama_server
271271
if: ${{ startsWith(matrix.os, 'macos-') }}
272-
- uses: golangci/golangci-lint-action@v4
272+
- uses: golangci/golangci-lint-action@v5
273273
with:
274274
args: --timeout 8m0s -v
275275
test:

.golangci.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ linters:
99
- contextcheck
1010
- exportloopref
1111
- gocheckcompilerdirectives
12-
# FIXME: for some reason this errors on windows
13-
# - gofmt
14-
# - goimports
12+
- gofmt
13+
- goimports
1514
- misspell
1615
- nilerr
1716
- unused

0 commit comments

Comments
 (0)