Netlify CLI cannot run Deno in VSCode Container

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?

I fixed my own problem!

I noticed that Netlify CLI was looking for a particular range of Deno versions before trying to download its “own”. Therefore I specified in my devcontainer.json the highest allowed version, ie.:

"features": {
  "ghcr.io/devcontainers-community/features/deno:1": {
      "version": "2.2.4"
    }
}