Skip to content

hack/update/licenses.sh: mirror in-tree third_party licenses#291

Merged
Bowei Du (bowei) merged 1 commit into
agent-substrate:mainfrom
BenTheElder:licenses-third-party
Jun 23, 2026
Merged

hack/update/licenses.sh: mirror in-tree third_party licenses#291
Bowei Du (bowei) merged 1 commit into
agent-substrate:mainfrom
BenTheElder:licenses-third-party

Conversation

@BenTheElder

Copy link
Copy Markdown
Collaborator

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.

Pulled out from #287

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

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.
@BenTheElder Benjamin Elder (BenTheElder) mentioned this pull request Jun 23, 2026
2 tasks
@bowei Bowei Du (bowei) merged commit 387acac into agent-substrate:main Jun 23, 2026
9 checks passed
@BenTheElder Benjamin Elder (BenTheElder) deleted the licenses-third-party branch June 23, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants