Skip Menu |

This queue is for tickets about the App-podweaver CPAN distribution.

Report information
The Basics
Id: 109705
Status: open
Priority: 0/
Queue: App-podweaver

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc: ether [...] cpan.org
AdminCc:

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



CC: ether [...] cpan.org
Subject: Tests fail with latest Module::Metadata
If a recent Module::Metadata is installed (e.g. 1.000030 which is bundled with perl 5.23.5, or the currently latest trial version Module-Metadata-1.000031), then t/30-weave-file.t fails: ... # Failed test 'no pod passes correct version' # at t/30-weave-file.t line 136. # got: '1.10' # expected: '1.00' # Failed test 'block pod passes correct version' # at t/30-weave-file.t line 136. # got: '1.10' # expected: '1.00' ...
On 2015-11-25 23:17:53, SREZIC wrote: Show quoted text
> If a recent Module::Metadata is installed (e.g. 1.000030 which is > bundled with perl 5.23.5, or the currently latest trial version > Module-Metadata-1.000031), then t/30-weave-file.t fails: > > ... > # Failed test 'no pod passes correct version' > # at t/30-weave-file.t line 136. > # got: '1.10' > # expected: '1.00' > > # Failed test 'block pod passes correct version' > # at t/30-weave-file.t line 136. > # got: '1.10' > # expected: '1.00' > ...
This is caused by improved semantic checking in Module::Metadata. Calling $module_info->version() without specifying a package name will attempt to use the "module name" associated with the file, but there is no such module name associated with .txt files. You need to explicitly pass a package name to the version method to specify which package's version you wish to query.