This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new db6fe6b6d ci: Use absolute path for RAT report schema
db6fe6b6d is described below
commit db6fe6b6de848855a02cb574818b3dffa9a36480
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 22 17:36:34 2025 +0200
ci: Use absolute path for RAT report schema
This allows to use script from other repos.
---
.github/check_license.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/check_license.py b/.github/check_license.py
index bd41e6991..02de217fa 100755
--- a/.github/check_license.py
+++ b/.github/check_license.py
@@ -29,6 +29,7 @@ from pathlib import Path
licenses_url = "https://www.apache.org/legal/resolved.html"
LICENSE_FILE = "LICENSE"
RAT_EXCLUDES_FILE = ".rat-excludes"
+RAT_REPORT_XSL = os.path.dirname(__file__) + "/rat_report.xsl"
def run_cmd(cmd: str) -> list[str]:
out = subprocess.check_output(cmd, text=True, shell=True)
@@ -95,7 +96,7 @@ def check_license_files(license_entries: set[str]) ->
list[str]:
def run_rat_check(files_diff: list[str]) -> list[str]:
result = []
- rat_out = run_cmd_no_check(f"java -jar apache-rat.jar --input-exclude-std
GIT --input-exclude-parsed-scm GIT --input-exclude-file .rat-excludes
--output-style .github/rat_report.xsl -- . | grep \"^ ! \"")
+ rat_out = run_cmd_no_check(f"java -jar apache-rat.jar --input-exclude-std
GIT --input-exclude-parsed-scm GIT --input-exclude-file .rat-excludes
--output-style {RAT_REPORT_XSL} -- . | grep \"^ ! \"")
if rat_out:
for entry in rat_out:
entry = entry.strip(' ! /')