-
Notifications
You must be signed in to change notification settings - Fork 200
patches: drop internalModuleReadJSON hack of v14.16.0 #122
Conversation
I am trying to work through #118 I followed your instructions on the - https://github.com/yao-pkg/pkg-binaries from what i can tell the patch applied I think I am missing something simple my binary gives me this error Error: Cannot find module 'PKG_DUMMY_ENTRYPOINT' |
@jesec @robertsLando just FYI, removing this will break other things during |
WIthout this patch, any module that relies on |
@david-mohr Thank you for your help with this. I tried to download patch 2.5.9 for windows and it does not seem to do anything are you running this from a windows box? Is 2.5.9 the version of patch you are using? I thought there was a issue with building a windows binary on linux box, maybe that was older version of pkg |
I have successfully built node binaries using this patch on Windows, Mac and Linux. I simply run |
I don't see how that's related. Anyways, this hack is not acceptable. Whatever the problem is, we have to resolve it in See vercel/pkg#1059 . |
@jesec I'm not sure it can be fixed in https://github.com/nodejs/node/blob/v14.16.0/src/node_file.cc#L976-L984 |
@jesec please don't take my comments the wrong way, it's just that it took a lot of testing to get this function definition right and passing all the |
It is properly fixed by vercel/pkg#1059. vercel/pkg#1059 makes the hooked internalModuleReadJSON return an array, matching new Node versions: The method has been working perfectly fine in production since Jan 18: |
Thanks for explaining @jesec, I appreciate it. |
This pulls in the changes from vercel/pkg-fetch#122
Fixes: #118
Needs: vercel/pkg#1059