It s really hard to say I posted https
It's really hard to say, I posted https://discord.com/channels/595317990191398933/1063502445654847588/1063502445654847588
9 Replies
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
(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 thingyeah 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)
So, yeah, it's the use of esbuild to compile the functions
if we remove the functions directory, it succeeds
yeah because I ran
npm i
on one arch, and running it on another. https://esbuild.github.io/getting-started/#simultaneous-platformsSounds like we could maybe try to use yarn
cc @zooooooooo (I see you're chatting in the main thread)
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View