-
Notifications
You must be signed in to change notification settings - Fork 118
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
Remove remove_dir_all dependency #208
Conversation
@Stebalien Can we prioritize this? There is a vulnerability in this version of the library. Let's please update. or remove this dependency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔐
And release a patch version, too please. |
I (upstream for the crate version) would prefer to see an update. The previous objection to updating it was #123 (comment) - which we've addressed, there is a feature 'parallel', required to opt-into the parallel deletion behaviour. The current crate version 0.8.1 has quite small dependency list:
And if its a dominating concern I'd be happy to trim it further. The fs_at MSRV might be an issue; I'd be happy to see how far back I can push it - I don't think there are concrete concerns, but solving the TOCTOU issues was a higher priority than figuring out how fare back I could easily go. Going further back than 1.58.1 would just re-open the TOCTOU concern though :/. If you do remove it, thats fine - could I ask (and I'd obviously be willing to put up a patch) for a feature to opt-into the remove_dir_all crate? The parallel deletion support makes a huge difference to |
Yep, this seems reasonable. I'll merge and release today. In terms of adding a feature to enable this, that sounds reasonable. I'm also willing to enable it by default if it ends up causing performance issues for users, but I'm somewhat skeptical that'll be an issue in practice (temporary directories tend to be short lived and therefore tend not to have tons of files). |
Build failure is rust-lang/rust#107252. |
Fixes #129