in reply to ExtUtils::MakeMaker : how to ignore files and not add them

I have tried adding these file extensions and directories in a ignore.txt file

They need to go in the MANIFEST.SKIP file instead.

Replies are listed 'Best First'.
Re^2: ExtUtils::MakeMaker : how to ignore files and not add them
by bliako (Abbot) on Mar 17, 2020 at 13:56 UTC

    Thanks for the pointer. It must contain regex right? but this .*.lock in a separate line does not have any effect.

    EDIT: no it DOES WORK, sorry (and in fact should be .*\.lock).

      What version of ExtUtils::MakeMaker do you have? The line works for me:

      $ touch .lock $ touch AB.lock $ perl -MExtUtils::MakeMaker -E 'say $ExtUtils::MakeMaker::VERSION' 7.24 $ perl Makefile.PL && make manifest "/home/steveb/perl5/perlbrew/perls/perl-5.26.1/bin/perl" "-MExtUtils:: +Manifest=mkmanifest" -e mkmanifest Added to MANIFEST: .lock Added to MANIFEST: AB.lock # Add entry to MANIFEST.SKIP $ tail -3 MANIFEST.SKIP .base$ main$ .*.lock $ make manifest "/home/steveb/perl5/perlbrew/perls/perl-5.26.1/bin/perl" "-MExtUtils:: +Manifest=mkmanifest" -e mkmanifest Removed from MANIFEST: .lock Removed from MANIFEST: AB.lock

        I must have done something wrong, it does work

      Yes, each line in MANIFEST.SKIP should be a regex. Full docs are here.