You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently experiencing an issue where Deno's node:child_process polyfill is always passing the parent process's environment to spawned subprocesses even when the env option is provided. On Node it looks like the correct behaviour is for the parent environment to be inherited only when env isn't specified, otherwise only the values from env are passed to the environment.
Version: Deno 2.1.3
Hi there 👋
I'm currently experiencing an issue where Deno's node:child_process polyfill is always passing the parent process's environment to spawned subprocesses even when the
env
option is provided. On Node it looks like the correct behaviour is for the parent environment to be inherited only whenenv
isn't specified, otherwise only the values fromenv
are passed to the environment.For example, the code:
When run on Node only outputs
'test=test\n'
but when run on Deno outputs the full parent environment in addition totest=test
.I've had a go at fixing this in #27340 😄
The text was updated successfully, but these errors were encountered: