Repository navigation
fix(ci): stage the Rust release binary outside the repo root before archiving - #12918
Conversation
…rchiving The Release pnpm (Rust) workflow renamed the built binary to `pnpm` at the repo root before tarring it. Since the pacquet/ directory was renamed to pnpm/, that `mv` moved the binary *into* the existing `pnpm/` source directory instead, so the non-Windows archives contained the whole Rust source tree. The publish job then extracted a directory where it expected a binary and failed with EISDIR in generate-packages.mjs (https://github.com/pnpm/pnpm/actions/runs/29113833296). Stage the binary in a scratch directory and tar from there, keeping the archive layout (a plain `pnpm` binary at the root) unchanged. Co-Authored-By: Claude Fable 5 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release workflow now stages the non-Windows ChangesBinary packaging
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoFix Rust release workflow tarball by staging pnpm binary outside repo root
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
PR Code Suggestions ✨Warning
Explore these optional code suggestions:
|
|||||||||
Summary
The Release pnpm (Rust) run failed in the Publish job with
EISDIR: illegal operation on a directory, copyfile '.../pnpm-darwin-x64'.Root cause: the build job's non-Windows "Archive Binary" step renamed the built binary to
pnpmat the repo root before tarring it. Since #12913 renamed thepacquet/directory topnpm/, thatmvmoved the binary into the existingpnpm/source directory (aspnpm/pacquet), andtar czf ... pnpmarchived the entire Rust source tree instead of the binary. The publish job then extracted a directory where it expected a binary, andgenerate-packages.mjscrashed. The Windows legs were unaffected because they rename topnpm.exe, which doesn't collide.This stages the binary in a scratch directory and tars from there. The archive layout is unchanged (a plain
pnpmbinary at the root), so the publish job, the GitHub release assets, and get.pnpm.io's install scripts all keep working as before. Verified locally that the new commands produce a tarball containing onlypnpmand that the publish job's extract step yields a regular file. The pnpr release workflow doesn't have this bug — it renames its binary topnpr-<target>, which doesn't collide with thepnpr/directory.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting. (CI-only change to the Rust release workflow; nothing to port.)🤖 Generated with Claude Code
Written by an agent (Claude Code, claude-fable-5).
Summary by CodeRabbit