Skip to content

testdata: make the module zip-safe (build the apostrophe tree at test runtime) - #39

Merged
KodeStar merged 1 commit into
mainfrom
fix/module-zip-testdata
Jul 16, 2026
Merged

testdata: make the module zip-safe (build the apostrophe tree at test runtime)#39
KodeStar merged 1 commit into
mainfrom
fix/module-zip-testdata

Conversation

@KodeStar

Copy link
Copy Markdown
Owner

The committed folder-book fixture path contains apostrophes, which golang.org/x/mod/zip prohibits - so every version of this module was unfetchable by consumers (verified: zip.CreateFromDir fails with invalid char '\''), forcing dependents (audiosilo-manager, now audiosilo-sidecars for pkg/match) onto local replace directives.

The fixture moves to zip-safe testdata/chaptered.m4b; the test rebuilds the original apostrophe'd tree in a temp dir at runtime, so apostrophe-path scanning stays exercised. Verified locally: module zip creation now succeeds; full gate green.

The committed fixture path (AF01 - Shade's First Rule/Shade's First
Rule.m4b) contains apostrophes, which golang.org/x/mod/zip prohibits in
module zip file paths - so every version of this module was unfetchable
by consumers (proxy or GOPROXY=direct alike), forcing dependents like
audiosilo-manager and audiosilo-sidecars onto local replace directives.

The apostrophes were incidental to the test (embedded-chapter expansion
is the point), but they ARE worth exercising: the fixture moves to the
zip-safe testdata/chaptered.m4b and the test now rebuilds the original
apostrophe'd tree in a temp dir at runtime, keeping the coverage while
making the module fetchable.
@KodeStar
KodeStar merged commit 91486c3 into main Jul 16, 2026
2 checks passed
@KodeStar
KodeStar deleted the fix/module-zip-testdata branch July 16, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant