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: 107525
Status: resolved
Priority: 0/
Queue: Module-Metadata

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

Bug Information
Severity: (no value)
Broken in: 1.000028-TRIAL
Fixed in: 1.000032-TRIAL



Subject: Reports package "main" for pure-POD files
In version 1.000027 and earlier, $metadata->name() would return the empty string after analyzing a file containing only POD. Trial versions 1.000028 and 1.000029 return "main" instead. This caused an issue for one of my modules (http://www.cpantesters.org/cpan/report/4f4e4d86-6934-11e5-8225-ee19d1d03245) I was able to work around the issue, but I doubt I was the only one depending on the old behavior. I can see a reason for returning "main" for scripts, but it doesn't make as much sense for POD-only files. I suggest that if the filename ends with ".pod" and there is no package statement, then name() should continue to return the empty string.
On 2015-10-03 12:53:36, CJM wrote: Show quoted text
> In version 1.000027 and earlier, $metadata->name() would return the > empty string after analyzing a file containing only POD. Trial > versions 1.000028 and 1.000029 return "main" instead. This caused an > issue for one of my modules > (http://www.cpantesters.org/cpan/report/4f4e4d86-6934-11e5-8225- > ee19d1d03245) > > I was able to work around the issue, but I doubt I was the only one > depending on the old behavior. I can see a reason for returning > "main" for scripts, but it doesn't make as much sense for POD-only > files. > > I suggest that if the filename ends with ".pod" and there is no > package statement, then name() should continue to return the empty > string.
This should be fixed in 1.000032-TRIAL (and first regressed in 1.000028-TRIAL, and has never been in a stable release).