Read the license files of the SQLite driver's modules

The license notices stopped on two files of the modules that
modernc.org/sqlite brings, which the daemon will link:

- modernc.org/sqlite ships LICENSE-SQLITE, SQLite's dedication to the
  public domain, whose wording the generator did not know. It now reads
  as "public domain", the term modernc's own notices use.
- modernc.org/memory ships LICENSE-LOGO, which holds only the address
  of the image its logo.png comes from. No package links that image, so
  LICENSE-LOGO no longer counts as a license file.

Nothing links these modules yet, so the notices do not change here.

Part of stage 1d of docs/plans/job-store.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
57_WolveandClaude Opus 5.5 committed 2026-12-01 16:39:48 -06:00
1 parent 4eb620dde0
commit 341353f702
3 files changed
+9 -1

No files matched your search

+5 -1
View File
@@ -167,9 +167,13 @@ func licenseFiles(dir string) ([]string, error) {
// isLicenseFile reports whether a file name, in any letter case, is that of
// a license: LICENSE, LICENCE, COPYING or UNLICENSE, perhaps with a suffix
// such as -MIT, and with no extension or that of a text file.
// such as -MIT, and with no extension or that of a text file. LICENSE-LOGO
// is not one: it covers a project's logo image, which no package links.
func isLicenseFile(name string) bool {
stem := textStem(name)
if stem == "license-logo" || stem == "licence-logo" {
return false
}
for _, base := range []string{"license", "licence", "copying", "unlicense"} {
if stem == base || strings.HasPrefix(stem, base+"-") {
return true