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
|
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
|
TARGETS := binary build all check fmt assert-fmt generate lint vet test coverage
|
||||||
DOCKER_TARGETS := $(patsubst %,docker-%, $(TARGETS))
|
DOCKER_TARGETS := $(patsubst %,docker-%, $(TARGETS))
|
||||||
.PHONY: $(TARGETS) $(DOCKER_TARGETS) vendor check-vendor
|
.PHONY: $(TARGETS) $(DOCKER_TARGETS) vendor check-vendor
|
||||||
@ -28,7 +29,7 @@ build:
|
|||||||
GOOS=$(GOOS) go build ./...
|
GOOS=$(GOOS) go build ./...
|
||||||
|
|
||||||
all: check build binary
|
all: check build binary
|
||||||
check: assert-fmt lint vet
|
check: $(CHECK_TARGETS)
|
||||||
|
|
||||||
vendor:
|
vendor:
|
||||||
go mod tidy
|
go mod tidy
|
||||||
@ -59,8 +60,7 @@ generate:
|
|||||||
go generate $(MODULE)/...
|
go generate $(MODULE)/...
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
# We use `go list -f '{{.Dir}}' $(MODULE)/...` to skip the `vendor` folder.
|
golangci-lint run ./...
|
||||||
go list -f '{{.Dir}}' $(MODULE)/... | grep -v pkg/nvml | xargs golint -set_exit_status
|
|
||||||
|
|
||||||
## goimports: Apply goimports -local to the codebase
|
## goimports: Apply goimports -local to the codebase
|
||||||
goimports:
|
goimports:
|
||||||
|
Loading…
Reference in New Issue
Block a user