Skip to content
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

fix(CLI): fix getDevNodeOptions #9735

Merged
merged 6 commits into from Dec 20, 2023
Merged

fix(CLI): fix getDevNodeOptions #9735

merged 6 commits into from Dec 20, 2023

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Dec 20, 2023

Fixes #9733.

  • don't rely on the function getDevNodeOptions to return the whole env var string (NODE_OPTIONS="..."); just return the value of NODE_OPTIONS
  • fix the quoting issue [Bug?]: NODE_OPTIONS in .env file not pulled in correctly #9733 was specifically about where the env var string would be inserted as NODE_OPTIONS=--inspect --enable-source-maps causing spawn to think --enable-source-maps was meant for something else
  • fix the test; the mock value for NODE_OPTIONS was incorrect resulting in a false positive

@jtoar jtoar added the release:fix This PR is a fix label Dec 20, 2023
@jtoar jtoar added this to the next-release-patch milestone Dec 20, 2023
@jtoar jtoar marked this pull request as ready for review December 20, 2023 07:13
@jtoar jtoar merged commit 8773534 into main Dec 20, 2023
32 checks passed
@jtoar jtoar deleted the ds-cli/fix-node-options branch December 20, 2023 08:46
Tobbe pushed a commit that referenced this pull request Dec 21, 2023
Fixes #9733.

- don't rely on the function `getDevNodeOptions` to return the whole env
var string (`NODE_OPTIONS="..."`); just return the value of
`NODE_OPTIONS`
- fix the quoting issue #9733 was specifically about where the env var
string would be inserted as `NODE_OPTIONS=--inspect
--enable-source-maps` causing spawn to think `--enable-source-maps` was
meant for something else
- fix the test; the mock value for `NODE_OPTIONS` was incorrect
resulting in a false positive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug?]: NODE_OPTIONS in .env file not pulled in correctly
2 participants