Skip to content

Commit 6b1ad8e

Browse files
committed
fix(ci): check-spdx prose licence variable → CC-BY-SA-4.0
check-spdx.sh set the prose SPDX variable to MPL-2.0, which contradicted the repo's own machine-readable declaration (licensing-policy.toml: prose = CC-BY-SA-4.0) and the checker's own failure label. Every prose file already carries CC-BY-SA-4.0, so the checker was failing `just license-check` on a pristine tree. Point the variable at the declared policy and exclude the canonical LICENSES/ REUSE texts (mirrored in licensing-policy.toml). No licence header on any file is changed — this only corrects the enforcer to accept the headers that are already present and declared. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012MpYSh6Wy8YMBH2E3qVyT7
1 parent fe0abcf commit 6b1ad8e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.machine_readable/licensing-policy.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ prose = "CC-BY-SA-4.0" # *.adoc, *.md narrative
2222
paths = [
2323
"Cargo.lock", # generated by cargo; enumerates third-party dependencies
2424
"LICENSE", # the MPL-2.0 licence text itself
25+
"LICENSES/", # canonical SPDX licence texts (REUSE dir: MPL-2.0 + CC-BY-SA-4.0)
2526
"target/", # cargo build output (gitignored)
2627
"tests/fixtures/", # Agda test-input data (some deliberately malformed)
2728
]

scripts/check-spdx.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Licence invariant for arghda-core (enforced by `just check` + Rust CI).
66
#
77
# code / config / scripts / state -> SPDX-License-Identifier: MPL-2.0
8-
# prose documentation (*.adoc, *.md) -> SPDX-License-Identifier: MPL-2.0
8+
# prose documentation (*.adoc, *.md) -> SPDX-License-Identifier: CC-BY-SA-4.0
99
#
1010
# Files that are NOT ours, generated, or test-input data are EXCLUDED and must
1111
# never carry the repo's licence choices. The machine-readable declaration of
@@ -20,13 +20,14 @@ set -euo pipefail
2020
cd "$(git rev-parse --show-toplevel)"
2121

2222
MPL='SPDX-License-Identifier: MPL-2.0'
23-
CC='SPDX-License-Identifier: MPL-2.0'
23+
CC='SPDX-License-Identifier: CC-BY-SA-4.0'
2424
fail=0
2525

2626
# Not ours / generated / test-input data — see [excluded] in the policy file.
2727
excluded() {
2828
case "$1" in
2929
Cargo.lock | LICENSE) return 0 ;; # generated lockfile / the licence text itself
30+
LICENSES/*) return 0 ;; # canonical SPDX licence texts (REUSE dir)
3031
target/* | tests/fixtures/*) return 0 ;; # build output / Agda test-input data
3132
*) return 1 ;;
3233
esac

0 commit comments

Comments
 (0)