-
Notifications
You must be signed in to change notification settings - Fork 110
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
Document how delete_directory works on symlinks #7444
Conversation
@sondreso you might be opinionated here. It is debatable whether we want to allow the trailing slashes in the argument to DELETE_DIRECTORY, one option would be to just error hard (breaking change!) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7444 +/- ##
==========================================
+ Coverage 85.20% 85.21% +0.01%
==========================================
Files 387 387
Lines 23070 23070
Branches 889 875 -14
==========================================
+ Hits 19656 19660 +4
+ Misses 3307 3300 -7
- Partials 107 110 +3 ☔ View full report in Codecov by Sentry. |
And the tests uncover that this is again behaves different on MacOS.. 🤯 |
a115fc6
to
00c4d5b
Compare
I think we should keep the default behavior here and not fail hard if there is a trailing slash. But the section in the documentation should be clearly marked (With a warning box) about the consequences of doing so. |
66415f4
to
250f236
Compare
def test_that_delete_directory_on_a_symlink_to_a_directory_is_conditionally_ignored( | ||
shell, trailing | ||
): | ||
"""A trailing slash turns the world upside down""" |
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.
😆 the comment could be more descriptive - maybe detail down both scenarios
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.
Written more now
250f236
to
1bd1a90
Compare
57c224a
to
3ca7a65
Compare
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.
Nice one! 🚀
Issue
Resolves user confusion in https://app.slack.com/client/T02JL00JU/CDPJULWR4
Approach
Test and document
When applicable