You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hugegraph.apache.org by ji...@apache.org on 2026/10/10 09:09:06 UTC
(hugegraph-computer) 01/01: fix: include licenses in source archives
This is an automated email from the ASF dual-hosted git repository.
imbajin pushed a commit to branch fix-source-archive-licenses
in repository https://gitbox.apache.org/repos/asf/hugegraph-computer.git
commit 9a241d2fd483ea399d9e354a182774474ec4c02a
Author: imbajin <ji...@apache.org>
AuthorDate: Sat Oct 10 17:06:14 2026 +0800
fix: include licenses in source archives
- retain existing release docs in native Git archives
- check source archive legal files in the license job
- trigger Computer CI when archive rules change
---
.gitattributes | 1 -
.github/workflows/computer-ci.yml | 2 ++
.github/workflows/license-checker.yml | 8 ++++++++
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.gitattributes b/.gitattributes
index 170b481e..8fc75e55 100755
--- a/.gitattributes
+++ b/.gitattributes
@@ -8,4 +8,3 @@
.github/ export-ignore
computer/computer-k8s-operator/crd-generate/bin/ export-ignore
computer/computer-dist/scripts/ export-ignore
-computer/computer-dist/release-docs/ export-ignore
diff --git a/.github/workflows/computer-ci.yml b/.github/workflows/computer-ci.yml
index 9164d3b4..f2bf8e0d 100644
--- a/.github/workflows/computer-ci.yml
+++ b/.github/workflows/computer-ci.yml
@@ -6,10 +6,12 @@ on:
- master
- release-*
paths:
+ - .gitattributes
- computer/**
- .github/workflows/computer-ci.yml
pull_request:
paths:
+ - .gitattributes
- computer/**
- .github/workflows/computer-ci.yml
concurrency:
diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml
index 66be588c..b5187810 100644
--- a/.github/workflows/license-checker.yml
+++ b/.github/workflows/license-checker.yml
@@ -29,6 +29,14 @@ jobs:
log: info
config: .licenserc.yaml
+ - name: Check source archive licenses
+ shell: bash
+ run: |
+ git -C .. archive HEAD | tar -tf - > "$RUNNER_TEMP/computer-source-files.txt"
+ grep -Fx 'computer/computer-dist/release-docs/LICENSE' "$RUNNER_TEMP/computer-source-files.txt"
+ grep -Fx 'computer/computer-dist/release-docs/NOTICE' "$RUNNER_TEMP/computer-source-files.txt"
+ grep -E '^computer/computer-dist/release-docs/licenses/(.*/)?LICENSE[^/]*$' "$RUNNER_TEMP/computer-source-files.txt"
+
- uses: actions/setup-java@v4
with:
java-version: '17'