1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

tests: Add license check

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2024-01-17 15:47:46 -05:00
parent cf47ad6338
commit 5b360a85ab
2 changed files with 5 additions and 0 deletions

View File

@@ -299,6 +299,9 @@ build-mo: $(MOFILES)
.PHONY: static-analysis
static-analysis:
ifeq ($(shell command -v go-licenses),)
(cd / ; $(GO) install -v -x github.com/google/go-licenses@latest)
endif
ifeq ($(shell command -v golangci-lint),)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$($(GO) env GOPATH)/bin
endif

2
test/lint/licenses.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh -eu
go-licenses check ./...