Explorar o código

Revert "fix golangci workflow missing gofmt and goimports (#4190)"

This reverts commit 04f971c84be907b90edfdd409f84b892a3586705.
Michael Yang hai 1 ano
pai
achega
4d4f75a8a8
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 1 1
      .github/workflows/test.yaml
  2. 3 2
      .golangci.yaml

+ 1 - 1
.github/workflows/test.yaml

@@ -269,7 +269,7 @@ jobs:
           mkdir -p llm/build/darwin/$ARCH/stub/bin
           mkdir -p llm/build/darwin/$ARCH/stub/bin
           touch llm/build/darwin/$ARCH/stub/bin/ollama_llama_server
           touch llm/build/darwin/$ARCH/stub/bin/ollama_llama_server
         if: ${{ startsWith(matrix.os, 'macos-') }}
         if: ${{ startsWith(matrix.os, 'macos-') }}
-      - uses: golangci/golangci-lint-action@v5
+      - uses: golangci/golangci-lint-action@v4
         with:
         with:
           args: --timeout 8m0s -v
           args: --timeout 8m0s -v
   test:
   test:

+ 3 - 2
.golangci.yaml

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