-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node: need a way to spawn process.execPath with no deno specific flags #2674
Comments
The first solution might be ideal, but sounds adding lot of complexity to CLI entrypoint. I think we should try the 2nd solution first and see how many cases it can cover. cc @bartlomieju what do you think? |
I also encountered this here: denoland/deno#15836 |
I agree with that, we should go with 2nd solution for now. |
This commit updates test-child-process-spawnsync-env.js to match the test from Node.js with two exceptions noted in a TODO comment. These TODOs should be addressable once Deno <--> Node CLI argument mapping is implemented and there is a way to start Deno with require() available. Refs: denoland#2674
This commit updates test-child-process-spawnsync-env.js to match the test from Node.js with two exceptions noted in a TODO comment. These TODOs should be addressable once Deno <--> Node CLI argument mapping is implemented and there is a way to start Deno with require() available. Refs: #2674
This commit adds initial support for mapping Node CLI flags to Deno CLI flags. This is done to better support the case where Node compat mode is used to spawn another Node subprocess (that is actually Deno in compat mode - not at all confusing). Refs: denoland#2674
This commit adds initial support for mapping Node CLI flags to Deno CLI flags. This is done to better support the case where Node compat mode is used to spawn another Node subprocess (that is actually Deno in compat mode - not at all confusing). Refs: denoland#2674
This commit adds initial support for mapping Node CLI flags to Deno CLI flags. This is done to better support the case where Node compat mode is used to spawn another Node subprocess (that is actually Deno in compat mode - not at all confusing). Refs: denoland#2674
I created an initial version of the CLI argument mapper (option 2) in #2688. The CI is passing, but I personally think that option 1 is the better solution in the long term due to the many edge cases in option 2. We also need a way to spawn a Deno child process with |
This commit adds initial support for mapping Node CLI flags to Deno CLI flags. This is done to better support the case where Node compat mode is used to spawn another Node subprocess (that is actually Deno in compat mode - not at all confusing). Refs: denoland#2674
This commit adds initial support for mapping Node CLI flags to Deno CLI flags. This is done to better support the case where Node compat mode is used to spawn another Node subprocess (that is actually Deno in compat mode - not at all confusing). Refs: #2674
Compat mode no longer exists, is this still relevant? #2688 landed a while ago and I haven't seen a lot of movement on this issue. If there is something to be done, I'd love to pick it up. |
Describe the bug
Many Node.js tests spawn the node executable in a child process. This is separate from
child_process.fork()
. As an example, see this test. The problem in that test is that in Deno's compat mode, thespawnSync()
call needs to be updated to pass in necessary Deno CLI flags (-A
,--unstable
, etc.).For users, this is a problem because they can't run existing Node code as is. For us, it's also a problem because by modifying the Node tests, we lose the ability to automatically upgrade them to newer versions of Node.
A few ideas on how to approach this:
Steps to Reproduce
Spawn
process.execPath
in Node compat mode without changing any of the CLI flags.Expected behavior
Node compat code runs without modifications.
Environment
The text was updated successfully, but these errors were encountered: