Documentation
¶
Overview ¶
Command notices writes THIRD_PARTY_NOTICES, the licence and notice texts of the Go modules compiled into agentryd, in a form that is the same on every machine: modules sorted by path, no timestamps, the linux/amd64 build the container image uses.
go run ./scripts/notices write THIRD_PARTY_NOTICES go run ./scripts/notices -check fail when the committed file differs
For each module it takes the licence files nearest to each package that is compiled in (the package's directory, then its parents up to the module root), classifies each by its text, and copies the text in full, followed by the module's NOTICE files. A licence file it cannot classify fails the run, so a new dependency is never listed under a guessed licence. It reads only the module cache; it needs no network once the modules are downloaded.
Click to show internal directories.
Click to hide internal directories.