-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: support for latest NodeJS v20 #11
Conversation
Fixes when users run scripts with other shells.
@glektarssza thanks so much for your PR, I can give it a review tomorrow 🙏🏻 did you tried to run all the tests locally? Also did you tried to spawn a binary build on your fork? If not give it a try to see if the build ends correctly 🙌🏻 |
@robertsLando Morning! No rush, I understand it's the weekend and it's an open-source project. I ran the |
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.
Can't say much about the patch as I'm not a NodeJS core/C++ expert but for the rest it looks good to me
Thanks so much for your contribution @glektarssza, this is a long awaited feature 🙏🏼
Crossed fingers 🤞🏼 https://github.com/yao-pkg/pkg-fetch/actions/runs/7083731774 |
Failed on alpine and linuxstatic ARM64: https://github.com/yao-pkg/pkg-fetch/actions/runs/7083731774/job/19276653688 Error seems related to an unrecognized option on g++:
https://github.com/yao-pkg/pkg-fetch/actions/runs/7083731774/job/19276653688#step:4:30520 And that seems a known error: nodejs/node#45756 Maybe that should be added to patch? Seems to only happen when cross-building arm64 UPDATE Also windows x64 has failed: https://github.com/yao-pkg/pkg-fetch/actions/runs/7083731774/job/19276659687#step:6:31323 What I suggest is to try running those actions on your fork when doing tests |
This is a trivial syntax error: Just need to remove the double "return" on line 93 of node_main.cc. Btw, I will use the binary for an internal application at my company, so I can give some feedback if I see any issues with the patched node binary. |
Yeah just submitted a fix for the patch, need to sort out how to fix the arm64 problem now... |
Seems the ARM64 error was fixed in vercel#280 by @baparham. Seems it has been ported to v20 patch too so I don't understand why it's failing. @baparham any clue? |
My application currently fails with:
This is probably unrelated to pkg-fetch and rather an issue with pkg. I'm analyzing that now. |
@ptaferner Are you using pkg master branch? Dunno if it could be someway related to yao-pkg/pkg#8 |
I may have a fix for arm64 too: https://github.com/yao-pkg/pkg-fetch/actions/runs/7087579394/job/19288161530, for some reason the patch could not be needed anymore with node20 |
Ah, many thanks! This has indeed resolved the problem and my app runs now! :) |
@ptaferner Did you reverted that change and it worked so? Strange... |
Seems to be working!