forked from akvorado/akvorado
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add license check target to make
- Loading branch information
1 parent
f5799d0
commit 3ff118d
Showing
4 changed files
with
270 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
allowlist: | ||
- Apache-2.0 | ||
- BSD-3-Clause | ||
- BSD-2-Clause | ||
- BSD-2-Clause-Views | ||
- MPL-2.0 | ||
- MIT | ||
- ISC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,6 +62,9 @@ $(BIN)/protoc-gen-go: PACKAGE=google.golang.org/protobuf/cmd/[email protected] | |
PIGEON = $(BIN)/pigeon | ||
$(BIN)/pigeon: PACKAGE=github.com/mna/[email protected] | ||
|
||
WWHRD = $(BIN)/wwhrd | ||
$(BIN)/wwhrd: PACKAGE=github.com/frapposelli/wwhrd@latest | ||
|
||
# Generated files | ||
|
||
.DELETE_ON_ERROR: | ||
|
@@ -147,6 +150,14 @@ fmt: .fmt-go~ .fmt-js~ ; $(info $(M) formatting code…) @ ## Format all source | |
|
||
# Misc | ||
|
||
.PHONY: licensecheck | ||
licensecheck: console/frontend/node_modules | $(WWHRD) ; $(info $(M) check dependency licenses…) @ ## Check licenses | ||
$Q err=0 ; go mod vendor && $(WWHRD) --quiet check || err=$$? ; rm -rf vendor/ ; exit $$err | ||
$Q cd console/frontend ; yarn run --silent license-compliance \ | ||
--production \ | ||
--allow "MIT;ISC;Apache-2.0;BSD-3-Clause;WTFPL;0BSD" \ | ||
--report detailed | ||
|
||
.PHONY: clean | ||
clean: ; $(info $(M) cleaning…) @ ## Cleanup everything | ||
@rm -rf $(BIN) test $(GENERATED) *~ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.