Skip Menu |

This queue is for tickets about the Module-Metadata CPAN distribution.

Maintainer(s)' notes

Attention bug reporters: issues MUST include the version of Module::Metadata that you are running that exhibit the stated symptoms. thank you!

Report information
The Basics
Id: 90374
Status: open
Priority: 0/
Queue: Module-Metadata

People
Owner: ether [...] cpan.org
Requestors: STEVENL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.000019
Fixed in: (no value)



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'.
I'd like to update Dist::Metadata to use the provides() method but it's somewhat broken (https://rt.cpan.org/Ticket/Display.html?id=92640).
Subject: Re: [rt.cpan.org #90374] Use of File::Spec::Unix means it doesn't work for Windows
Date: Sat, 1 Feb 2014 10:21:23 -0800
To: Randy Stauner via RT <bug-Module-Metadata [...] rt.cpan.org>
From: Karen Etheridge <ether [...] cpan.org>
On Sat, Feb 01, 2014 at 12:03:21PM -0500, Randy Stauner via RT wrote: Show quoted text
> Queue: Module-Metadata > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=90374 > > > I'd like to update Dist::Metadata to use the provides() method > but it's somewhat broken (https://rt.cpan.org/Ticket/Display.html?id=92640).
On 2013-11-14 21:47:41, STEVENL wrote: Show quoted text
> 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'.
The change to File::Spec::Unix was made to fix https://rt.cpan.org/Ticket/Display.html?id=65540, so whatever we do we need to not re-introduce that bug.