fs: rimraf should not recurse on failure#35566
Closed
bcoe wants to merge 5 commits intonodejs:masterfrom
Closed
Conversation
Contributor
Author
|
CC: @iansu |
Contributor
|
I'd love to see a test for this but I realize that might be tricky in this case. |
cjihrig
approved these changes
Oct 9, 2020
Contributor
Author
@iansu was trying to think of a reasonable way to test this, and an idea doesn't immediately jump out at me that's not terrible. We lazy load rimraf, so perhaps I could mock |
Trott
approved these changes
Oct 9, 2020
Contributor
Author
iansu
approved these changes
Oct 11, 2020
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Collaborator
Trott
approved these changes
Oct 13, 2020
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Author
|
Landed in 7d66722 |
bcoe
pushed a commit
that referenced
this pull request
Oct 13, 2020
PR-URL: #35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Oct 14, 2020
PR-URL: #35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Merged
joesepi
pushed a commit
to joesepi/node
that referenced
this pull request
Jan 8, 2021
PR-URL: nodejs#35566 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When an error occurs while running
rimrafSync, we pass the original options through to the call tormdirSync, this in turn spawns another call torimraf, rather than simply removing the file.Fixes #34266
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes