Skip to content

Commit

Permalink
stringify directory, for String::Flogger
Browse files Browse the repository at this point in the history
  • Loading branch information
karenetheridge authored and rjbs committed Jun 7, 2020
1 parent e050407 commit 535d759
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Dist/Zilla/Dist/Builder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -676,16 +676,16 @@ sub _create_build_symlinks {
$latest = path( $symlink_root, 'latest' );
if( -l $previous ) {
$previous->remove
or $self->log([ 'cannot remove old %s/previous link', $symlink_root ]);
or $self->log([ 'cannot remove old %s/previous link', "$symlink_root" ]);
}
if( -l $latest ) {
rename $latest, $previous
or $self->log([ 'cannot move %s/latest link to .build/previous', $symlink_root ]);
or $self->log([ 'cannot move %s/latest link to .build/previous', "$symlink_root" ]);
}

my $link_dest = path($build_target)->relative(path($latest)->parent);
symlink $link_dest->stringify, $latest
or $self->log([ 'cannot create link %s/latest', $symlink_root ]);
or $self->log([ 'cannot create link %s/latest', "$symlink_root" ]);
}

return ($latest, $previous);
Expand Down

0 comments on commit 535d759

Please sign in to comment.