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.
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 inVERSION_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.