This is an automated email from the ASF dual-hosted git repository.
manirajv06 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new 413323f9de [YUNIKORN-3297] Update license check (#557)
413323f9de is described below
commit 413323f9de8dd5828768961dd2c96123123df690
Author: Wilfred Spiegelenburg <[email protected]>
AuthorDate: Tue Jun 9 17:56:03 2026 +0530
[YUNIKORN-3297] Update license check (#557)
Remove pnpm-workspace.yaml from the files checked.
Update regexp to ignore ./build and all the artifacts below it as it is
the website production build which does not have license headers in the
js files.
Closes: #557
Signed-off-by: Manikandan R <[email protected]>
---
check_license.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/check_license.sh b/check_license.sh
index 2b4aaadd83..36944e9e29 100755
--- a/check_license.sh
+++ b/check_license.sh
@@ -22,9 +22,9 @@ OS=$(uname -s | tr '[:upper:]' '[:lower:]')
echo "checking license headers:"
# run different finds on mac vs linux
if [ "${OS}" = "darwin" ]; then
- find -E . ! -path "./.git*" ! -path "./.docusaurus*" ! -path
"./node_modules*" ! -path ./pnpm-lock.yaml -regex
".*(Dockerfile|\.(js|sh|md|conf|yaml|yml|html|css))" -exec grep -L "Licensed to
the Apache Software Foundation" {} \; > LICRES
+ find -E . ! -path "./build*" ! -path "./.git*" ! -path "./.docusaurus*" !
-path "./node_modules*" ! -path "./pnpm-*.yaml" -regex
".*(Dockerfile|\.(js|sh|md|conf|yaml|yml|html|css))" -exec grep -L "Licensed to
the Apache Software Foundation" {} \; > LICRES
else
- find . ! -path "./.git*" ! -path "./.docusaurus*" ! -path "./node_modules*"
! -path ./pnpm-lock.yaml -regex
".*\(Dockerfile\|\.\(js\|sh\|md\|conf\|yaml\|yml\|html\|css\)\)" -exec grep -L
"Licensed to the Apache Software Foundation" {} \; > LICRES
+ find . ! -path "./build*" ! -path "./.git*" ! -path "./.docusaurus*" ! -path
"./node_modules*" ! -path "./pnpm-*.yaml" -regex
".*\(Dockerfile\|\.\(js\|sh\|md\|conf\|yaml\|yml\|html\|css\)\)" -exec grep -L
"Licensed to the Apache Software Foundation" {} \; > LICRES
fi
# any file mentioned in the output is missing the license
if [ -s LICRES ]; then
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]