Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Pruner should check for excluded files without considering to output_dir #1313
When a pattern excluded from pruning is contained in the
Steps to reproduce
When checking whether a file is excluded from pruning, the
I believe the behavior you're witnessing is normal. As per Nanoc manual:
Now I would acknowledge there's an ambiguity in Nanoc's wording.
The current behavior makes it
In any case, the exclusion logic is implemented in terms of `String#include? so it's definitely loose and can't achieve what you're asking.
Finally, given your additional example of having
Right, but given that the exclude patterns are checked against each path component I cannot achieve that either.
From my point of view it should only exclude
Not possible, as each path component is checked against a pattern. What you suggested never is a component. For
I remember a discussion we had earlier that I would prefer pruning to use globs. It allows for fine-grained control, is rather standard, but I do still believe these globs should be checked against paths below