Skip to content

Commit

Permalink
fix golangci workflow missing gofmt and goimports (ollama#4190)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwqx authored May 7, 2024
1 parent 70edb9b commit 04f971c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
llm/ext_server/* linguist-vendored
*.go text eol=lf
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 2 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ linters:
- contextcheck
- exportloopref
- gocheckcompilerdirectives
# FIXME: for some reason this errors on windows
# - gofmt
# - goimports
- gofmt
- goimports
- misspell
- nilerr
- unused

0 comments on commit 04f971c

Please sign in to comment.