mirror of
https://github.com/clearml/go-nvlib
synced 2025-01-30 18:36:59 +00:00
Fix check targets
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
04f701cf56
commit
2560bf6332
6
Makefile
6
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:
|
||||
|
Loading…
Reference in New Issue
Block a user