-
Notifications
You must be signed in to change notification settings - Fork 581
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
Fix for handling changes in File::Find 1.41 on win #2113
base: main
Are you sure you want to change the base?
Conversation
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.
Can a test be written for this?
There are two consequences of this bug on the returned collection:
When I considered a test for the two things above it felt redundant as this is already tested in the tests that fail. I'm open to suggestion though if you have a better idea for a test for this? |
lib/Mojo/File.pm
Outdated
@@ -63,17 +63,18 @@ sub list_tree { | |||
|
|||
# The File::Find documentation lies, this is needed for CIFS | |||
local $File::Find::dont_use_nlink = 1 if $options->{dont_use_nlink}; | |||
|
|||
|
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.
Why does this empty line change?
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.
Not sure how that whitespace crept in - now removed
Squash your commits. |
In a relatively recent update to File::Find (which was included in the Perl 5.38 release) a change was made to how the windows directory separator ('\') is handled and to convert this within File::Find to '/' to make it consistent: Perl/perl5@414f14d This then causes tests to fail in Mojo::File with Perl 5.38 on Windows.
d10b608
to
fff4b72
Compare
Summary
In a relatively recent update to File::Find v1.41 (which was included in the Perl 5.38 release) a change was made to how the windows directory separator (backslash) is handled and is now converted within File::Find to a forward slash to make it consistent. This was done in the below commit:
Perl/perl5@414f14d
This now causes several tests to fail in Mojo::File with Perl 5.38 on Windows.
Motivation
Mojolicious will not past tests on Windows with Perl 5.38.
References
#2105