-
Notifications
You must be signed in to change notification settings - Fork 3.7k
npm package: don't move binary from optional one & instead link (or copy if can't hardlink) #25303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…opy if can't hardlink)
|
Updated 1:53 AM PT - Dec 2nd, 2025
❌ @RiskyMH, your commit 2775cb6 has some failures in 🧪 To try this PR locally: bunx bun-pr 25303That installs a local version of the PR into your bun-25303 --bun |
WalkthroughReplaced two-step relocation pattern for bun binaries with direct hard links. Changed from rename(path, ...bun.exe) followed by link(...bun.exe, ...bunx.exe) to link(path, ...bun.exe) and link(path, ...bunx.exe). Removes intermediate rename operation while maintaining equivalent control flow and error handling. Changes
Suggested reviewers
Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (3 passed)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (15)📓 Common learnings📚 Learning: 2025-10-19T02:52:37.412ZApplied to files:
📚 Learning: 2025-11-24T18:37:11.466ZApplied to files:
📚 Learning: 2025-09-12T18:16:50.754ZApplied to files:
📚 Learning: 2025-11-24T18:37:30.259ZApplied to files:
📚 Learning: 2025-11-24T18:37:11.466ZApplied to files:
📚 Learning: 2025-11-20T19:51:32.288ZApplied to files:
📚 Learning: 2025-10-08T13:56:00.875ZApplied to files:
📚 Learning: 2025-11-24T18:37:30.259ZApplied to files:
📚 Learning: 2025-10-19T02:44:46.354ZApplied to files:
📚 Learning: 2025-11-24T18:36:59.706ZApplied to files:
📚 Learning: 2025-11-20T01:27:21.509ZApplied to files:
📚 Learning: 2025-11-24T18:35:50.422ZApplied to files:
📚 Learning: 2025-11-24T18:34:55.173ZApplied to files:
📚 Learning: 2025-10-26T01:32:04.844ZApplied to files:
🧬 Code graph analysis (1)packages/bun-release/src/npm/install.ts (1)
🔇 Additional comments (1)
Comment |
In theory fixes #25031 because the original file will still be present. This isn't a perfect solution as it is a lot of wasted effort in checking and moving again, but it should fix the intimidate issue.