Skip Menu |

This queue is for tickets about the Module-ScanDeps CPAN distribution.

Report information
The Basics
Id: 61027
Status: resolved
Priority: 0/
Queue: Module-ScanDeps

Owner: RSCHUPP [...]
Requestors: eric.roode.cpan [...]

Bug Information
Severity: Important
Broken in: 0.98
Fixed in: (no value)

Subject: "use lib" does not work.
Download (untitled) / with headers
text/plain 855b
When Module::ScanDeps encounters a "use lib" line, it includes the version-specific subdirectory, the architechture-specific subdirectory, and the version-and-architecture-specific subdirectory, but it does not include the directory itself! Here is a small test program: #!/usr/local/bin/perl use lib 'lib'; use MyModule; in a 'lib' directory under the current directory, put containing: 1; When you run, it says "No modules found!". If you run it with the -V option, it says: # Could not find source file '' in @INC or @IncludeLibs. Skipping it. # Legend: [C]ore [X]ternal [S]ubmodule [?]NotOnCPAN No modules found! The problem appears to be in the function scan_line, in line 816. Adding the following line: unshift(@INC, $_) if -d $_; seems to solve the problem.
Download (untitled) / with headers
text/plain 108b
Thanks for the report and analysis. I've committed your fix, will be in the next release. Cheers, Roderich

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to