Subject: | Use of File::Spec::Unix means it doesn't work for Windows |
This bug occurred while trying to install Dist::Metadata on my Windows PC. That modules calls `Module::Metadata->package_versions_from_directory`.
The problem occurs because the files passed to it have paths like: 'C:\\Users\\StevenL\\AppData\\Local\\Temp\\NmFm5q1GLX\\lib\\Bunnies.pm'.
Because it uses File::Spec::Unix->abs2rel, the path comes out as '..\\C:\\Users\\StevenL\\AppData\\Local\\Temp\\NmFm5q1GLX\\lib\\Bunnies.pm'.
Changing that to File::Spec->abs2rel results in the correct output: 'lib\\Bunnies.pm'.