Skip to content

Commit

Permalink
Exclude vendored dependencies from licence check
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Feb 22, 2022
1 parent 28ebf66 commit 7046646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/check-license.sh
Expand Up @@ -7,7 +7,7 @@ set -o pipefail
set -u

licRes=$(
find . -type f -iname '*.go' ! -path '*/vendor/*' ! -path '*/pkg/internal/pprof/*' -exec \
find . -type f -iname '*.go' ! -path '*/vendor/*' ! -path '*/internal/go/*' ! -path '*/internal/pprof/*' -exec \
sh -c 'head -n3 $1 | grep -Eq "(Copyright|generated|GENERATED)" || echo -e $1' {} {} \;
)

Expand Down

0 comments on commit 7046646

Please sign in to comment.