Skip to content

Commit

Permalink
state the full path of the file being considered
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge committed Jun 5, 2015
1 parent 8bf238a commit 0424d28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dist/Zilla/Plugin/GatherDir.pm
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ sub gather_files {
$exclude_regex = qr/(?:$exclude_regex)|$_/
for @{ $self->exclude_match };

my $repo_root = $self->zilla->root;
my $root = "" . $self->root;
$root =~ s{^~([\\/])}{require File::HomeDir; File::HomeDir::->my_home . $1}e;

Expand All @@ -180,7 +181,7 @@ sub gather_files {
my $rule = File::Find::Rule->new();
$rule->extras({ follow => $self->follow_symlinks });

$rule->exec(sub { $self->log_debug('considering ' . path($_[-1])->relative($root)); 1 })
$rule->exec(sub { $self->log_debug('considering ' . path($_[-1])->relative($repo_root)); 1 })
if $self->zilla->logger->get_debug;

$rule->or(
Expand Down

0 comments on commit 0424d28

Please sign in to comment.