[AuthorDeps] blessed $root in @INC causes silent failure to load local author includes
Opened this issue · 0 comments
mydimension commented
given a local package inc/Testing.pm
with simple contents:
package inc::Testing;
1;
and the following entry in dist.ini
[=inc::Testing]
the command dzil authordeps --missing
will still emit inc::Testing
despite the attempt to put the provided $root
onto @INC
. The command invocation isn't passing in a string but rather a Dist::Zilla::Path
object. Blessed objects on @INC
must provided an INC
method (see: perldoc -f require
) to satisfy the require
hook API.
By placing an unprepared object onto @INC
, the line in
Dist-Zilla/lib/Dist/Zilla/Util/AuthorDeps.pm
Lines 116 to 118 in 64dd98f
Can't locate object method "INC" via package "Dist::Zilla::Path"
due to the fact that $root
isn't stringified. Adding quotes around "$root"
would solve the issue.