X Tutup
The Wayback Machine - https://web.archive.org/web/20210813053314/https://github.com/nodejs/node/pull/38862
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

child_process: allow options.cwd receive a URL #38862

Closed
wants to merge 11 commits into from

Conversation

@XadillaX
Copy link
Member

@XadillaX XadillaX commented May 31, 2021

Fixes: #38861

@XadillaX XadillaX requested a review from Lxxyx May 31, 2021
Copy link
Contributor

@aduh95 aduh95 left a comment

Can you add a change entry in the YAML in child_process.md please?

lib/child_process.js Outdated Show resolved Hide resolved
@thernstig
Copy link

@thernstig thernstig commented May 31, 2021

Should the code check if the URL is a path to a file or a directory? And if it is a file, strip the file from the path?

@XadillaX
Copy link
Member Author

@XadillaX XadillaX commented May 31, 2021

Should the code check if the URL is a path to a file or a directory? And if it is a file, strip the file from the path?

I think it shouldn't. The old logic doesn't check too. It will break.

@XadillaX
Copy link
Member Author

@XadillaX XadillaX commented May 31, 2021

Can you add a change entry in the YAML in child_process.md please?

Added.

doc/api/child_process.md Outdated Show resolved Hide resolved
doc/api/child_process.md Outdated Show resolved Hide resolved
Copy link
Member

@jasnell jasnell left a comment

LGTM with the suggested edits.

test/parallel/test-child-process-cwd.js Outdated Show resolved Hide resolved
test/parallel/test-child-process-cwd.js Outdated Show resolved Hide resolved
test/parallel/test-child-process-cwd.js Outdated Show resolved Hide resolved
XadillaX and others added 2 commits Jun 2, 2021
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@aduh95
aduh95 approved these changes Jun 3, 2021
XadillaX added a commit that referenced this pull request Jun 4, 2021
PR-URL: #38862
Fixes: #38861
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@XadillaX
Copy link
Member Author

@XadillaX XadillaX commented Jun 4, 2021

Landed in fc4b9c1

@XadillaX XadillaX closed this Jun 4, 2021
targos added a commit that referenced this pull request Jun 11, 2021
PR-URL: #38862
Fixes: #38861
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@danielleadams danielleadams mentioned this pull request Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

7 participants
X Tutup