can't load external modules when run as child process with Deno.spawnChild

Hi! This is really weird, but I'm trying to run deno scripts under another deno process with Deno.spawnChild(Deno.execPath(), {...}) Problem is the subprocess deno is unable to load any remote dependencies (mongo here just an example, even std modules fail to load): error: Uncaught (in promise) TypeError: error sending request for url (https://deno.land/x/mongo@v0.30.0/mod.ts): error trying to connect: dns error: A non-recoverable error occurred during a database lookup. (os error 11003) If I run the same scripts straight from the command line, everything works ok, this only happens when deno is running as child of another deno process, for some reason. I have no idea how to even start to untangle this, maybe I'm overlooking something obvious... This is on Windows 10 btw. Hm. Removing the clearEnv flag from SpawnOptions fixed it. Not sure how environment variables relate to network access, but whatever, if it works it works, and I don't really need clearEnv :)

Looking for more? Join the community!