mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Add tooling to check go licenses
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
ec078543a1
commit
d5162b1917
5
Makefile
5
Makefile
@ -38,7 +38,7 @@ EXAMPLE_TARGETS := $(patsubst %,example-%, $(EXAMPLES))
|
|||||||
CMDS := $(patsubst ./cmd/%/,%,$(sort $(dir $(wildcard ./cmd/*/))))
|
CMDS := $(patsubst ./cmd/%/,%,$(sort $(dir $(wildcard ./cmd/*/))))
|
||||||
CMD_TARGETS := $(patsubst %,cmd-%, $(CMDS))
|
CMD_TARGETS := $(patsubst %,cmd-%, $(CMDS))
|
||||||
|
|
||||||
CHECK_TARGETS := assert-fmt vet lint ineffassign misspell
|
CHECK_TARGETS := assert-fmt vet lint ineffassign misspell licenses
|
||||||
MAKE_TARGETS := binaries build check fmt lint-internal test examples cmds coverage generate $(CHECK_TARGETS)
|
MAKE_TARGETS := binaries build check fmt lint-internal test examples cmds coverage generate $(CHECK_TARGETS)
|
||||||
|
|
||||||
TARGETS := $(MAKE_TARGETS) $(EXAMPLE_TARGETS) $(CMD_TARGETS)
|
TARGETS := $(MAKE_TARGETS) $(EXAMPLE_TARGETS) $(CMD_TARGETS)
|
||||||
@ -102,6 +102,9 @@ misspell:
|
|||||||
vet:
|
vet:
|
||||||
go vet $(MODULE)/...
|
go vet $(MODULE)/...
|
||||||
|
|
||||||
|
licenses:
|
||||||
|
go-licenses csv $(MODULE)/...
|
||||||
|
|
||||||
COVERAGE_FILE := coverage.out
|
COVERAGE_FILE := coverage.out
|
||||||
test: build cmds
|
test: build cmds
|
||||||
go test -v -coverprofile=$(COVERAGE_FILE) $(MODULE)/...
|
go test -v -coverprofile=$(COVERAGE_FILE) $(MODULE)/...
|
||||||
|
@ -18,3 +18,4 @@ RUN go install golang.org/x/lint/golint@latest
|
|||||||
RUN go install github.com/matryer/moq@latest
|
RUN go install github.com/matryer/moq@latest
|
||||||
RUN go install github.com/gordonklaus/ineffassign@latest
|
RUN go install github.com/gordonklaus/ineffassign@latest
|
||||||
RUN go install github.com/client9/misspell/cmd/misspell@latest
|
RUN go install github.com/client9/misspell/cmd/misspell@latest
|
||||||
|
RUN go install github.com/google/go-licenses@latest
|
||||||
|
Loading…
Reference in New Issue
Block a user