File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Constraints for the ScanCode install of the license gate (PIP_CONSTRAINT).
2+ # pluggy 1.7.0 (2026-10-15) no longer finds plugincode 32.0.0's class-level
3+ # hookspecs: scancode then crashes at import with "did not find any
4+ # 'pre_scan' hooks" and the gate fails on every run.
5+ pluggy==1.6.0
Original file line number Diff line number Diff line change 3838 steps :
3939 - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4040 - name : Install ScanCode Toolkit
41- run : pipx install scancode-toolkit
41+ # Pinned: an unpinned install picked up pluggy 1.7.0, which breaks
42+ # scancode at import (see .github/scancode-constraints.txt).
43+ env :
44+ PIP_CONSTRAINT : ${{ github.workspace }}/.github/scancode-constraints.txt
45+ run : pipx install scancode-toolkit==32.5.0
4246 - name : " Gate self-test (a planted violation must be detected)"
4347 run : scripts/license-gate.sh --selftest
4448 - name : " License compliance gate (one finding fails)"
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ set -euo pipefail
1313# the ScanCode pass for runtime; their per-directory license files ARE
1414# scanned, and layer 1 guarantees each grammar carries one.
1515#
16- # Requires: scancode (pipx install scancode-toolkit), python3.
16+ # Requires: scancode (PIP_CONSTRAINT=.github/scancode-constraints.txt
17+ # pipx install scancode-toolkit==32.5.0, as CI does), python3.
1718
1819ROOT=" $( cd " $( dirname " $0 " ) /.." && pwd) "
1920cd " $ROOT "
@@ -79,7 +80,7 @@ echo "OK: every vendored source directory is covered by a license file"
7980
8081echo " === License gate 2/2: ScanCode detection ==="
8182if ! command -v scancode & > /dev/null; then
82- echo " FAIL: scancode not installed (pipx install scancode-toolkit)"
83+ echo " FAIL: scancode not installed (PIP_CONSTRAINT=.github/scancode-constraints.txt pipx install scancode-toolkit==32.5.0 )"
8384 exit 1
8485fi
8586
You can’t perform that action at this time.
0 commit comments