README describes storage paths, formats, and features that do not match the code #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Verified against
mainat61f42e6. Docs-only issue; each item is a factual mismatch betweenREADME.mdand the implementation.On-disk layout is wrong.
README.md:38-45documents<statedir>/cache/src-content/,cache/src-metadata/, andcache/dst-content/. The actual directories (internal/imgcache/cache.go:52-65) arecache/sources,cache/variants,cache/metadata. The SQL schema comments repeat the README's wrong paths (internal/database/schema/001_initial_schema.sql, lines 5, 12, 38). Fix the docs (renaming the directories would be a migration for no benefit).The format list contradicts itself.
README.md:59says<format>is one oforig,png,jpeg,webp.README.md:88, in the signature spec, listsjpeg, png, webp, avif, gif, orig. The code (internal/imgcache/urlparser.go:241-258) acceptsjpg,avif,gif, andoriginalas well. Make one accurate list.allow_httpis undocumented and contradicts a stated guarantee.README.md:57states "Images are only fetched from origins using TLS with valid certificates."config.example.yml:26documentsallow_http, andinternal/httpfetcher/httpfetcher.go:300-303honors it. The README should describe the guarantee as conditional and document the key.Two Architecture claims overstate what exists.
README.md:49— "In-process caching of request-to-output mappings targets 1-5k r/s". The field backing this is dead (filed separately). Either that issue implements it or this line must go.README.md:128— "Metrics: Prometheus" implies pixa-specific metrics. Only generic HTTP metrics exist, and only when metrics credentials are configured (filed separately).Definition of done
README.md; item 1 also corrected in the001_initial_schema.sqlcomments.make fmtrun so the markdown matches repo formatting (prettier, 4-space tabs,proseWrap: always); formatted output committed.make checkgreen.Process note
Docs-only (plus SQL comments). Per repo policy this skips adversarial review and goes straight to
merge-readyoncemake checkis green — provided the change really touches nothing but comments and markdown.