Skip to content

fix: pass full tar path to verify-packed-manifests#626

Open
hobostay wants to merge 1 commit intoheygen-com:mainfrom
hobostay:fix/verify-packed-manifests-tar-path
Open

fix: pass full tar path to verify-packed-manifests#626
hobostay wants to merge 1 commit intoheygen-com:mainfrom
hobostay:fix/verify-packed-manifests-tar-path

Conversation

@hobostay
Copy link
Copy Markdown

@hobostay hobostay commented May 5, 2026

Summary

  • Fix verify-packed-manifests.mjs script that always fails because tar cannot find the packed tarball
  • pnpm pack writes to packDir (temp directory) but tar was invoked with only the bare filename relative to the repo root

Details

Affected file: scripts/verify-packed-manifests.mjs (line 56)

The script packs packages into a temp directory (packDir), then tries to extract package.json from the tarball. But tar -xOf was given just the filename (e.g., hyperframes-core-0.1.0.tgz) with cwd: ROOT, so it looks for the file at the repo root instead of in packDir.

Test plan

  • Run bun run verify:packed-manifests and verify it completes successfully

🤖 Generated with Claude Code

pnpm pack writes the tarball to packDir (a temp directory), but
tar was invoked with cwd:ROOT and only the bare filename. Since
the tarball doesn't exist at <ROOT>/<filename>, the verification
always fails with "file not found".

Use join(packDir, filename) so tar can find the packed tarball.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@jrusso1020 jrusso1020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified — pnpm pack --pack-destination packDir writes to the tempdir, but tar -xOf <filename> runs with cwd: ROOT, so the lookup misses unless a tarball with the same name happens to exist at repo root. Joining packDir onto the filename is the fix. The script is currently broken in CI's bun run verify:packed-manifests path; this should unblock it. LGTM.

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.

2 participants