Semantic Diff

#8594 Ship third-party license notices in the native platform packages

1 commit

e8ba9f93b437f495f2622b51d96673b1764d58ed..pr-8594

a29b3243e · cknitt + Claude · Nov 08, 2026, 20:08 UTC

Ship third-party license notices in the native platform packages

Each @rescript/<platform> package now ships a THIRD_PARTY_LICENSES file generated from licenses/components.json. It covers the vendored Flow, Sedlex and js_of_ocaml sources, the LexiFi-derived reanalyze code, every linked OCaml library, and the glibc and MinGW-w64 runtimes, which are linked statically. It replaces the rewatch-only THIRD_PARTY_NOTICES_REWATCH.md and RE_LICENSE.md.

The generator takes the versions and license texts of OCaml libraries from the opam switch and asks dune which opam packages the shipped executables link, failing when the inventory misses one or lists one that is not linked. The files are committed; the linux-x64 build job checks them.