PerlDancer / Dancer2

Perl Dancer Next Generation (rewrite of Perl Dancer)
http://perldancer.org/
Other
543 stars 274 forks source link

Duplicate entries in Makefile.pl for VERSION_FROM created by 'dancer2 gen -a my::app' #1675

Closed barkYboY closed 1 year ago

barkYboY commented 1 year ago

'dancer2 gen -a my::app' puts 2 entries (lib/my/app.pm lib/my/app.pm) in VERSION_FROM field in Makefile.PL this causes 'perl Makefile.pl' to fail with Could not open 'lib/my/app.pm lib/my/app.pm': No such file or directory at /usr/share/perl/5.34/ExtUtils/MM_Unix.pm line 2967.

removing one of the entries manually cures the error, but doesn't fix it for next project generated.

cromedome commented 1 year ago

I've created a PR to address this. Thanks for the bug report!