Hi!
I'm struggling to implement something and I hope you could help me out. I've some ruby code that parses a file with .gitignore style filters and afterward creates a tar archive:
So I want to exclude everything except for the directories/files prefixed with a !. When I use this new filter I always end up with some empty directories that aren't supposed to be there:
the whole spec dir should have been excluded
there are files missing in the manifests/ directory
Hi! I'm struggling to implement something and I hope you could help me out. I've some ruby code that parses a file with .gitignore style filters and afterward creates a tar archive:
https://github.com/puppetlabs/puppet-modulebuilder/blob/main/lib/puppet/modulebuilder/builder.rb#L251-L268 (
ignore_file
is set to.pmtigore
) -> https://github.com/puppetlabs/puppet-modulebuilder/blob/main/lib/puppet/modulebuilder/builder.rb#L149-L153 -> https://github.com/puppetlabs/puppet-modulebuilder/blob/main/lib/puppet/modulebuilder/builder.rb#L76-L92Current .pmtignore is something like this:
And I need to switch from an denylist to an allowlist, roughly:
So I want to exclude everything except for the directories/files prefixed with a
!
. When I use this new filter I always end up with some empty directories that aren't supposed to be there:manifests/
directory