Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
fs: rimraf should not recurse on failure#35566
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
bcoe commented Oct 9, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
bcoe commented Oct 9, 2020
CC: @iansu |
iansu commented Oct 9, 2020
I'd love to see a test for this but I realize that might be tricky in this case. |
Uh oh!
There was an error while loading. Please reload this page.
bcoe commented Oct 9, 2020
@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 |
bcoe commented 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.
nodejs-github-bot commented Oct 13, 2020 • edited by bcoe
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bcoe
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bcoe commented Oct 13, 2020
Landed in 7d66722 |
PR-URL: #35566 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: #35566 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
PR-URL: nodejs#35566 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
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