Data-Printer icon indicating copy to clipboard operation
Data-Printer copied to clipboard

DDP is up to date. (undef)

Open KES777 opened this issue 4 years ago • 3 comments

DDP is not updated via carton

How to reproduce:

add into cpanfile : requires 'DDP' $ carton update

DDP should have a $VERSION

KES777 avatar Jun 28 '21 09:06 KES777

But DDP does have a $VERSION: https://github.com/garu/Data-Printer/blob/main/lib/DDP.pm#L8

▶ perl -MDDP -E 'say $DDP::VERSION'
1.000004

@skaji any idea what might be going on here?

garu avatar Jun 28 '21 16:06 garu

@KES777 while we work on the issue, a simple workaround is to use the name of the distribution:

requires 'Data::Printer'

garu avatar Jun 28 '21 16:06 garu

PAUSE does not recognize such dynamic version declaration.

❯ curl -s https://cpan.metacpan.org/modules/02packages.details.txt.gz | zgrep '^DDP '
DDP                               undef  G/GA/GARU/Data-Printer-1.000004.tar.gz

If you wish PAUSE to extract versions properly, use our $VERSION = '1.000004'; syntax in DDP.pm too.

Or, you can set "provides" explicitly in META.json. See, for example, https://metacpan.org/release/SKAJI/App-cpm-0.997004/source/META.json#L74

skaji avatar Jun 28 '21 17:06 skaji

Fixed in 1.1.0 (released in 2022-12-22)

garu avatar Jul 30 '23 03:07 garu