Subject: | Archive::Tar::Wrapper change dist::zilla::build::dist::builder behaviour |
(issue revealed in dzp-git, check
https://github.com/jquelin/dist-zilla-plugin-git/issues/18 and
https://github.com/jquelin/dist-zilla-plugin-git/pull/20#issuecomment-2784467)
archive::tar::wrapper doesn't leave cwd at the same place than archive::tar.
It looks like archive::tar::wrapper gets optionally pulled in (if
present) by Dist::Zilla::Dist::Builder. The relevant method is
build_archive:
sub build_archive {
...
my $method = Class::Load::load_optional_class('Archive::Tar::Wrapper')
? '_build_archive_with_wrapper'
: '_build_archive';
my $archive = $self->$method($built_in, $basename, $basedir);
...
}
So the bug appears to be with Archive::Tar::Wrapper, which does not
behave the same way with regard to the cwd as Archive::Tar.