GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — watch: strip watch flags from NODE_OPTIONS in child process by marcopiraccini · Pull Request #62143 · nodejs/node Conversation
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #62143 +/- ## ========================================== + Coverage 90.31% 90.34% +0.02% ========================================== Files 730 730 Lines 234463 234484 +21 Branches 43908 43918 +10 ========================================== + Hits 211763 211835 +72 + Misses 14419 14368 -51 Partials 8281 8281
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| let cleanNodeOptions = kNodeOptions; | ||
| if (kNodeOptions != null) { | ||
| const nodeOptionsArgs = []; | ||
| const parts = RegExpPrototypeSymbolSplit(/\s+/, kNodeOptions); |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Ultimately, this sort of approach isn't robust enough.
$ mkdir 'test for --watch parsing' $ echo 'console.log("hi!")' > 'test for --watch parsing/test.cjs' $ NODE_OPTIONS='--require "./test for --watch parsing/test.cjs"' node -p 'process.env.NODE_OPTIONS.split(" ")' hi! [ '--require', '"./test', 'for', '--watch', 'parsing/test.cjs"' ] ^^^^^^^
I suspect this is going to need to interact with the options parser in some way.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
Thinking about it, maybe adding a C++ binding that exposes ParseNodeOptionsEnvVar to JS would be more robust (being the same parser to interpret NODE_OPTIONS, in my undersanding) and then finltering out watch flags. Will amend this PR.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
@Renegade334 PTAL
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Oh, there's a test failing on macOS. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Because of node/.github/workflows/test-shared.yml Line 167 in d179c7e
PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
4cbc589 to
ae30387
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: marcopiraccini <[email protected]>
Signed-off-by: marcopiraccini <[email protected]>
Signed-off-by: marcopiraccini <[email protected]>
Signed-off-by: marcopiraccini <[email protected]>
Signed-off-by: marcopiraccini <[email protected]>
Signed-off-by: marcopiraccini <[email protected]>
ae30387 to
9def55c
Compare
|
This pull request has been marked as stale due to 90 days of inactivity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 1eacebb |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: marcopiraccini <[email protected]> PR-URL: #62143 Fixes: #61740 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: René <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Signed-off-by: marcopiraccini <[email protected]> PR-URL: #62143 Fixes: #61740 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: René <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Signed-off-by: marcopiraccini <[email protected]> PR-URL: #62143 Fixes: #61740 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: René <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Signed-off-by: marcopiraccini <[email protected]> PR-URL: #62143 Fixes: #61740 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Paolo Insogna <[email protected]> Reviewed-By: René <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
watch:NODE_OPTIONS=--watch causes infinite loop
There was an error while loading. Please reload this page.