Subject: | 'subclass' should unshift onto @INC, not push |
package: Module::Build::Base
sub: subclass
line: 748
The line that reads:
push @INC, File::Spec->catdir(File::Spec->rel2abs($build_dir), 'lib');
Should be:
unshift @INC, File::Spec->catdir(File::Spec->rel2abs($build_dir),
'lib');
When installing $class there will be problems if ${class}::Builder also
exists, as it will be included instead of the one in _build.
By unshifting onto @INC this problem is resolved.