Add third-party license notices, generated and embedded in the binary
THIRD-PARTY-LICENSES.md holds the license and notice files of the Go distribution and of the 35 modules that ./cmd/uberbringer links on linux amd64, armv6, armv7 and arm64, as each distribution ships them. tools/genlicenses writes it on go generate from go list -deps, so modules only the tools and tests use stay out. Beside each module's root license it takes NOTICE files and the license files in its linked packages' directories, which cover vendored code in gofiber/utils, klauspost/compress and fasthttp. Each module is listed with its version, so any dependency change needs the file regenerated. The generator fails on a module with no license file or a license it does not recognize. The same text goes to internal/app/uberbringer/licenses_embed.md, which the binary embeds and the new `uberbringer licenses` command prints. The release archives carry the file, and the Docker image keeps it with LICENSE.txt in /usr/share/licenses/uberbringer/. The Makefile's openapi and openapi-check targets become generate and generate-check. They, the CI step and the gate in CLAUDE.md check docs/swagger.json and both license files, and a test fails when a committed copy is out of date. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ee65e72c44
commit
0c88b4ffd5
19 files changed
+4969
-23
No files matched your search
@@ -84,6 +84,12 @@ version may break callers; such changes are listed under **Breaking**.
|
||||
or decoded prints as `[image unavailable]` instead of failing the job,
|
||||
and one whose `width` is wider than the paper shrinks to it.
|
||||
- `box` takes `"title_bold": true` to print its title bold.
|
||||
- Third-party licenses. `THIRD-PARTY-LICENSES.md` holds the license and
|
||||
notice texts of the Go standard library and runtime and of every Go
|
||||
module built into the binary. It comes with the release archives and in
|
||||
the Docker image, which also gains `LICENSE.txt`; both are in
|
||||
`/usr/share/licenses/uberbringer/`. `uberbringer licenses` prints the
|
||||
same text from the binary.
|
||||
|
||||
### Changed
|
||||
|
||||
|
||||
Reference in new issue
Block a user