diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-04-28 18:49:19 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-04-28 18:49:19 +0000 |
| commit | cd15723c5d62bbfa4c07c36eb7ab7bd962bd4936 (patch) | |
| tree | 0dea471977d0b5c14e1523f2a1a206d9d3fd6137 /recipes-devtools/python | |
| parent | a66c8df6fdc9025d0cbfae76252e12fc530a4824 (diff) | |
| download | meta-virtualization-cd15723c5d62bbfa4c07c36eb7ab7bd962bd4936.tar.gz | |
oe-go-mod-fetcher: add license scanning for Go module dependencies
Add --scan-licenses to oe-go-mod-fetcher.py which scans Go module zips
for license files and generates go-mod-licenses.inc with LICENSE and
LIC_FILES_CHKSUM entries matching OE-core's go-mod-update-modules format.
License detection uses OE-core's glob patterns and MD5 + crunched MD5
matching against known SPDX licenses. The hash database resolves from:
1. --common-license-dir (explicit path)
2. Auto-detected poky tree common-licenses
3. Bundled scripts/data/license-hashes.csv (offline fallback)
New files:
- scripts/generate-license-hashes.py: regenerate bundled CSV
- scripts/data/license-hashes.csv: pre-computed hash DB (704 entries)
bbclass changes:
- go-mod-discovery: pass --scan-licenses during do_generate_modules
- GO_MOD_DISCOVERY_SKIP_LICENSES variable to bypass scanning
- do_update_license_hashes task to refresh bundled CSV
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'recipes-devtools/python')
0 files changed, 0 insertions, 0 deletions
