From 2560bf63327529421c8b0aefbefeebbf44f91d37 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 4 Apr 2024 16:52:35 +0200 Subject: [PATCH] Fix check targets Signed-off-by: Evan Lezar --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c94c191..04edc8a 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ DOCKER ?= docker PCI_IDS_URL ?= https://pci-ids.ucw.cz/v2.2/pci.ids +CHECK_TARGETS := lint TARGETS := binary build all check fmt assert-fmt generate lint vet test coverage DOCKER_TARGETS := $(patsubst %,docker-%, $(TARGETS)) .PHONY: $(TARGETS) $(DOCKER_TARGETS) vendor check-vendor @@ -28,7 +29,7 @@ build: GOOS=$(GOOS) go build ./... all: check build binary -check: assert-fmt lint vet +check: $(CHECK_TARGETS) vendor: go mod tidy @@ -59,8 +60,7 @@ generate: go generate $(MODULE)/... lint: - # We use `go list -f '{{.Dir}}' $(MODULE)/...` to skip the `vendor` folder. - go list -f '{{.Dir}}' $(MODULE)/... | grep -v pkg/nvml | xargs golint -set_exit_status + golangci-lint run ./... ## goimports: Apply goimports -local to the codebase goimports: