mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-11 10:23:17 +08:00
go-licenses only covers module dependencies and treats our own module — including any copied-in / forked third-party SOURCE under in-tree third_party/ dirs — as first-party, so those upstream LICENSE/NOTICE/ COPYING files are never collected. Mirror them into LICENSES/third_party/, keyed by their path under third_party/, the same way kubernetes' hack/update-vendor-licenses.sh does. `git ls-files` is used so gitignored paths are skipped; vendor/ and the output dir are excluded since they hold module deps / generated output rather than forked source. This is a no-op today (there is no in-tree third_party source yet) and prepares the licenses tooling for forthcoming vendored third-party code.