Revision history for App-FatPacker
+ - don't fail packlist finding if one module fails to load
- don't fail tracing w/undef INC values due to failed optional module load
0.010_006 - 2017-01-20
sub packlists_containing {
my ($self, $targets) = @_;
- my @targets = @$targets;
+ my @targets;
{
local @INC = ('lib', @INC);
- foreach my $t (@targets) {
- require $t;
+ foreach my $t (@$targets) {
+ unless (eval { require $t; 1}) {
+ warn "Failed to load ${t}: $@\n"
+ ."Make sure you're not missing a packlist as a result\n";
+ next;
+ }
+ push @targets, $t;
}
}
my @search = grep -d $_, map catdir($_, 'auto'), @INC;