Browse Source

fix golangci workflow missing gofmt and goimports (#4190)

alwqx 1 year ago
parent
commit
04f971c84b
3 changed files with 4 additions and 4 deletions
  1. 1 0
      .gitattributes
  2. 1 1
      .github/workflows/test.yaml
  3. 2 3
      .golangci.yaml

+ 1 - 0
.gitattributes

@@ -1 +1,2 @@
 llm/ext_server/* linguist-vendored
+*.go text eol=lf

+ 1 - 1
.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:

+ 2 - 3
.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