I am trying to use an existing project (which works perfectly) using Netlify CLI (with Vite + SvelteKit) in a VSCode Development Container. This all works quite well, up till the point where my Edge Functions need to be loaded.
It seems that Netlify CLI downloads its own copy of Deno in order to do this, but because the platforms (for the container? the host? both?) don’t match, things get a bit weird:
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2\n
I’m pretty sure that the container is linux arm64, so I’m not sure why Netlify CLI is trying to link with a x86-64 object file.
I can even install Deno in the container, which works just fine (and runs without error). But I can’t see any way to force Netlify CLI to use my “local” version of Deno (installed in the container) instead of its “own” downloaded version.
Or is there something else I can do?