Skip to content

Commit

Permalink
Remove vendor exclude from license-check (open-telemetry#1552)
Browse files Browse the repository at this point in the history
* Update license-check to ignore all vendor dirs

* Remove vendor path exclude from license-check find
  • Loading branch information
MrAlias authored and ldelossa committed Mar 5, 2021
1 parent 52322a0 commit 36d673b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ generate: $(TOOLS_DIR)/stringer

.PHONY: license-check
license-check:
@licRes=$$(for f in $$(find . -type f \( -iname '*.go' -o -iname '*.sh' \) ! -path './vendor/*' ! -path '**/third_party/*' ! -path './exporters/otlp/internal/opentelemetry-proto/*') ; do \
@licRes=$$(for f in $$(find . -type f \( -iname '*.go' -o -iname '*.sh' \) ! -path '**/third_party/*' ! -path './exporters/otlp/internal/opentelemetry-proto/*') ; do \
awk '/Copyright The OpenTelemetry Authors|generated|GENERATED/ && NR<=3 { found=1; next } END { if (!found) print FILENAME }' $$f; \
done); \
if [ -n "$${licRes}" ]; then \
Expand Down

0 comments on commit 36d673b

Please sign in to comment.