From e8ae55430a24fbf3a2a9b5bc8912a355d6525c69 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Fri, 31 May 2024 08:01:15 +0200 Subject: [PATCH] replace golint with golangci-lint --- .github/workflows/golangci-lint.yaml | 2 +- Makefile | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 9ec7ec63..bef74391 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -23,5 +23,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: latest + version: v1.59 only-new-issues: true diff --git a/Makefile b/Makefile index 95d97721..d45d2108 100644 --- a/Makefile +++ b/Makefile @@ -35,15 +35,10 @@ htmlcov: go test -v -coverpkg=./... -coverprofile=c.out ./... go tool cover -html ./c.out -.PHONY: golangci-lint -golangci-lint: - $(info INFO: Starting build $@) - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.2 - golangci-lint run --timeout 5m $(pkgs) - lint: $(info INFO: Starting build $@) - golint $(pkgs) || true + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59 + golangci-lint run --timeout 5m $(pkgs) || true vet: $(info INFO: Starting build $@)