+2
−0
LICENSE-SQLITE_VEC
0 → 100644
+21
−0
+9
−0
+20
−0
Loading
vec/ has carried the transpiled sqlite-vec sources since v1.47.0, but the
module shipped only its own BSD-3-Clause LICENSE and the public-domain SQLite
notice. sqlite-vec is Copyright (c) 2024 Alex Garcia and dual-licensed
Apache-2.0 OR MIT; modernc.org/libsqlite_vec's generator elects MIT, whose
terms require the copyright and permission notice to accompany substantial
portions of the software. 2.8 MB of transpiled vec/ is a substantial portion.
Attribution was never absent -- vec's package documentation names the
extension, pins v0.1.9 and links upstream -- but the license text was.
LICENSE-SQLITE_VEC: the notice, byte-identical to LICENSE-MIT in the upstream
v0.1.9 archive and to the file libsqlite_vec extracts it into.
vendor_libs/main.go: the omission was mechanical -- the tool copied the
per-target transpiles and nothing else, so a plain cp of the notice would have
survived only until the next `make vendor`. Copy it alongside the sources it
belongs to, and treat a missing source as fatal: shipping the code without the
notice is worse than not vendoring at all.
SQLITE-LICENSE -> LICENSE-SQLITE, contents unchanged. This matches the new file
beside it and the LICENSE-<upstream> convention the rest of the modernc.org
repositories follow, but it is not only cosmetic. `go mod vendor` picks the
metadata files it copies into a downstream vendor/ tree by matching each name
against a fixed prefix list (cmd/go/internal/modcmd/vendor.go, metaPrefixes)
that includes LICENSE, so a name merely ending in LICENSE was never propagated.
Both notices now reach vendored builds, which is where the MIT terms on vec/
keep applying. Direct links to the old path will break.
vec/patches.go: a License section on the package documentation, so an importer
of vec sees on pkg.go.dev that this package is under a different license from
the rest of the module.
Found by an SBOM audit of the published module.
Co-Authored-By:
Claude Opus 5 (1M context) <noreply@anthropic.com>
File moved.