+6
−1
+152
−3
Loading
The vendoring reads one full per-target file at a time from ../libsqlite3 and
../libsqlite_vec, which assumes those checkouts ship expanded. They do today,
but either may adopt the deduplicated layout that modernc.org/wa2c already ships
(modernc.org/builder's NW autogen; see NW_GENERALIZATION_HANDOFF.md there) — and
then those per-target files hold only each target's residue, so vendoring them
would silently drop most of the package.
Detect it instead of remembering it later. srcDir applies undup's own rule
(base.go or base_g_*.go present means folded) and:
- returns an expanded checkout as is: no copy, no subprocess, exactly the path
this tool has always taken;
- copies a deduplicated one to a temp directory and expands it THERE, never in
place — expanding the sibling would leave that checkout dirty and tempt a
"restore" that discards whatever else is uncommitted in it. go.mod and go.sum
travel with the copy be...