You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,17 @@ endif
18
18
default: FORCE
19
19
@echo 'There is nothing to build, use `make check` for running the test suite or `make help` for a list of available targets.'
20
20
21
+
install-goimports: FORCE
22
+
@if !hash goimports 2>/dev/null;thenprintf"\e[1;36m>> Installing goimports (this may take a while)...\e[0m\n"; go install golang.org/x/tools/cmd/goimports@latest;fi
23
+
21
24
install-golangci-lint: FORCE
22
25
@if !hash golangci-lint 2>/dev/null;thenprintf"\e[1;36m>> Installing golangci-lint (this may take a while)...\e[0m\n"; go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest;fi
23
26
24
27
install-go-licence-detector: FORCE
25
-
@if !hash go-licence-detector 2>/dev/null;thenprintf"\e[1;36m>> Installing go-licence-detector...\e[0m\n"; go install go.elastic.co/go-licence-detector@latest;fi
28
+
@if !hash go-licence-detector 2>/dev/null;thenprintf"\e[1;36m>> Installing go-licence-detector (this may take a while)...\e[0m\n"; go install go.elastic.co/go-licence-detector@latest;fi
26
29
27
30
install-addlicense: FORCE
28
-
@if !hash addlicense 2>/dev/null;thenprintf"\e[1;36m>> Installing addlicense...\e[0m\n"; go install github.com/google/addlicense@latest;fi
31
+
@if !hash addlicense 2>/dev/null;thenprintf"\e[1;36m>> Installing addlicense (this may take a while)...\e[0m\n"; go install github.com/google/addlicense@latest;fi
29
32
30
33
prepare-static-check: FORCE install-golangci-lint install-go-licence-detector install-addlicense
31
34
@@ -92,7 +95,7 @@ check-dependency-licenses: FORCE install-go-licence-detector
92
95
@printf "\e[1;36m>> go-licence-detector\e[0m\n"
93
96
@go list -m -mod=readonly -json all | go-licence-detector -includeIndirect -rules .license-scan-rules.json -overrides .license-scan-overrides.jsonl
0 commit comments