Skip to content

fix: Group tar -C by parent directory to include all app dirs#17

Merged
pepicrft merged 1 commit intomainfrom
fix/tarball-grouping
Mar 29, 2026
Merged

fix: Group tar -C by parent directory to include all app dirs#17
pepicrft merged 1 commit intomainfrom
fix/tarball-grouping

Conversation

@pepicrft
Copy link
Copy Markdown
Owner

Summary

Fixes app directories being silently dropped from the deployment tarball.

Problem

When all app dirs share the same parent (e.g. _build/test/lib/condukt, _build/test/lib/req_llm, etc.), the tar command received:

tar czf out.tar.gz -C _build/test/lib condukt -C _build/test/lib req_llm -C _build/test/lib llm_db ...

Each -C changes the working directory, but tar only includes the last basename for each repeated -C path. This caused most apps (including req_llm and llm_db) to be silently dropped.

Fix

Group app dirs by parent directory and pass all basenames after a single -C:

tar czf out.tar.gz -C _build/test/lib condukt req_llm llm_db ...

Verified: tarball now contains all 40 app directories.

Test plan

  • 47 unit tests pass
  • e2e with exe.dev

🤖 Generated with Claude Code

When multiple app dirs share the same parent (e.g. all under
_build/test/lib/), repeated `-C parent basename` pairs caused tar
to only include the last one. Group by parent and pass all
basenames after a single -C to fix.

Also filter out the "." relative path entry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pepicrft pepicrft merged commit b9a8bb6 into main Mar 29, 2026
6 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