rjbs / Dist-Zilla

scary tools for building CPAN distributions
http://dzil.org/
186 stars 152 forks source link

GatherDir uses exclude_filename as a regex, causing files to be excluded incorrectly [rt.cpan.org #81492] #694

Open rjbs opened 3 years ago

rjbs commented 3 years ago

https://rt.cpan.org/Ticket/Display.html?id=81492

For example, try excluding MANIFEST while including MANIFEST.SKIP. 
Because the match is done as an unanchored regex, the latter will be 
incorrectly excluded. If exclude_filename is really going to be a regex, 
then what's the point of match? To match the behaviour described in the 
docs, the match must be against the whole filename.