-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): prevent max buffer issues with bunlock files #25985
fix(core): prevent max buffer issues with bunlock files #25985
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
240f256
to
6a94550
Compare
6a94550
to
0439554
Compare
0439554
to
7379155
Compare
@@ -98,7 +100,9 @@ export const createDependencies: CreateDependencies = ( | |||
const lockFileContents = | |||
packageManager !== 'bun' | |||
? readFileSync(lockFilePath).toString() | |||
: execSync(`bun ${lockFilePath}`).toString(); | |||
: execSync(`bun ${lockFilePath}`, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested using the following code snip https://gist.github.com/Jordan-Hall/fb5f5d1e09ebc5d90c67cf1d745e05c8.
This worked using NX own package.json and bun.lockb file. Happy to add test but not sure where
7379155
to
3d66b14
Compare
@FrozenPandaz I'm not sure why CI failing on this one. Not touched that section :/ |
@Jordan-Hall maybe try rebasing and formatting? |
3d66b14
to
3c087fc
Compare
I've rebased again its nothing to do with linting from looks of it but cypress legacy e2e test... If you can test now without this fix. It works when using bun runtime bunx --bun nx.... The max buffer is a node execSync issue and not a bun execSync issue |
Strange indeed. We'll take a look. |
Thank you. I'm having a nightmare with CI recently :( |
I know, we're investigating CI issues for forks. It has regressed since we atomized our tests. |
The failing test is unrelated. Thank you for your contribution! LGTM 🎉 |
The error is still happening for me, (nx 19.1.1 and bun 1.1.10) |
The fix was is in 19.2 I believe |
From the changelog it should have been in 19.1.1? https://github.com/nrwl/nx/releases/tag/19.1.1 However I updated to 19.2.0-beta.5 and the issue is there. |
Please go to the issue that's open and share errors message please. I think it's a different error |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Fixes #25978 #25965