It s really hard to say I posted https

9 Replies
IanVS
IanVSOP2y ago
I'm running npm install on my mac, and pushing up node_modules to aws lambda. There, I'm running node node_modules/wrangler/bin/wrangler.js, but it exits with status code 1, and only a newline for stdout it's a read-only filesystem (except for the tmp directory) And it should execute quickly. This is essentially how Lambda suggests to upload projects: https://docs.aws.amazon.com/lambda/latest/dg/nodejs-package.html It gives us an append-only record of every deployment that is ever live, in case we ever need it for a security investigation, for instance. Yeah that's the tricky part. I guess the main question is how the binary is generated from the rust code. Does that happen during npm installation? And is there any way to force a particular architecture to be built? no Is wrangler 2 js? ok, interesting. So no binary is created for a specific architecture in wrangler 2? ok, maybe there's some sub-dependency that is building a binary, though ok, well I'm stumped then There's no verbose logging mode or anything, right? w/ WRANGLER_LOG=debug i get a failed to load .env file ".env" followed by retrieving cached values for account_id and project_name, then an api request for the project (GET) which appears successful, then it exits
Retrieving cached values for account_id and project_name from node_modules/.cache/wrangler
-- START CF API REQUEST: GET https://api.cloudflare.com/client/v4/accounts/d79c0f33ec1480243a4c7fc3cd5a9ff3/pages/projects/webclient-gamma
Retrieving cached values for account_id and project_name from node_modules/.cache/wrangler
-- START CF API REQUEST: GET https://api.cloudflare.com/client/v4/accounts/d79c0f33ec1480243a4c7fc3cd5a9ff3/pages/projects/webclient-gamma
(That's not sensitive, right?) Sorry it's taking me a min, playing middleman to my coworker who's actually running it (it works fine on my mac, he's on a linux box). I'll get the whole thing
IanVS
IanVSOP2y ago
IanVS
IanVSOP2y ago
And here's an strace
IanVS
IanVSOP2y ago
yeah sorry, the build wasn't there when he ran it the first time, re-running it now. getting the new output. Sorry (We're muddling through this, lol)
IanVS
IanVSOP2y ago
So, yeah, it's the use of esbuild to compile the functions if we remove the functions directory, it succeeds
IanVS
IanVSOP2y ago
yeah because I ran npm i on one arch, and running it on another. https://esbuild.github.io/getting-started/#simultaneous-platforms
IanVS
IanVSOP2y ago
Sounds like we could maybe try to use yarn cc @zooooooooo (I see you're chatting in the main thread)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server