Merge pull request #4232 from ollama/revert-4190-fix/golang-ci

Revert "fix golangci workflow not enable gofmt and goimports"
This commit is contained in:
Michael Yang 2024-05-07 10:39:37 -07:00 committed by GitHub
commit ef4e095d24
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View file

@ -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@v5
- uses: golangci/golangci-lint-action@v4
with:
args: --timeout 8m0s -v
test:

View file

@ -9,8 +9,9 @@ linters:
- contextcheck
- exportloopref
- gocheckcompilerdirectives
- gofmt
- goimports
# FIXME: for some reason this errors on windows
# - gofmt
# - goimports
- misspell
- nilerr
- unused