PerlDancer / Dancer2

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

Stringify VERSION_FROM correctly in Makefile.PL #1676

Closed cromedome closed 1 year ago

cromedome commented 1 year ago

I'm not sure if the problem is in Path::Tiny, or how a Path::Tiny object is stringified by Dancer2::Template::Simple, but when generating a skeleton app, the combination caused the new app's Makefile.PL to be written with two files in VERSION_FROM, which produces an error when Perl tries to produce a Makefile. Explicitly stringifying the appfile path before generating the new app's Makefile prevents the problem from happening.

Fixes #1675.