Subject: | dist and manifest actions don't copy/recognize empty directories |
Part of my tarball (for the "VCI" CPAN distribution) is a git
repository. The git repo has a directory called "refs" which contains
two empty directories: "heads" and "objects".
Unfortunately, git believes that a repository is invalid if it does not
contain these directories. This means that my tests fail if these
directories are not present.
However, ./Build manifest doesn't add these directories to the MANIFEST
(because they're empty) and adding them directly to the MANIFEST causes
./Build dist to fail: Can't copy('t/repos/git/test.git/refs/heads',
'VCI-0.5.0_1/t/repos/git/test.git/refs/heads'): Is a directory at
/usr/lib/perl5/vendor_perl/5.10.0/Module/Build/Base.pm line 4284.
So, currently the dist action is only capable of making broken tarballs
for my distribution.