Skip to content

fix(cli): place extension-less package documents under documents/#439

Merged
joe-prosser merged 1 commit into
masterfrom
fix/package-extensionless-doc-path
May 5, 2026
Merged

fix(cli): place extension-less package documents under documents/#439
joe-prosser merged 1 commit into
masterfrom
fix/package-extensionless-doc-path

Conversation

@joe-prosser
Copy link
Copy Markdown
Collaborator

@joe-prosser joe-prosser commented May 5, 2026

Summary

  • Documents downloaded without an extension were being written to the zip root instead of under documents/. This change places them under documents/ with no extension suffix, matching the layout for documents that do have an extension.
  • Adds a backwards-compat read path (read_document and get_document_count) so packages produced before this fix still upload correctly.
  • Adds a document_basename helper so the basename is constructed in one place.

Test plan

  • cargo fmt --check -p reinfer-cli
  • cargo clippy -p reinfer-cli -- -D warnings
  • cargo test -p reinfer-cli --bin re (25/25 pass)
  • Manual: download a package, confirm extension-less attachments land under documents/
  • Manual: upload a legacy package (extension-less docs at zip root), confirm it still works

🤖 Generated with Claude Code

Previously, attachments downloaded without an extension were written
to the zip root rather than under documents/, breaking the layout
expected by consumers of the package. Move them under documents/
with no extension suffix, and keep a backwards-compat read path so
older packages still upload correctly.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@joe-prosser joe-prosser self-assigned this May 5, 2026
@joe-prosser joe-prosser merged commit 152c40c into master May 5, 2026
7 checks passed
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