Fix broken behaviour in --excludes-file option #982
Now its working.
exclude-file was trying to set the attributes on the exclude array from https://github.com/jordansissel/fpm/blob/master/lib/fpm/command.rb#L138 which @jordansissel introduced in cfee4c7 but it doesn't seem like later methods in the class can reference that, because its nil when exclude-file tries. Maybe that only works if both exclude and exlude-file are used together? I could use some advice
I changed path removal from
In my case
A few other notes.
Path globbing with
Here is a working excludes file with a few combinations
You can ignore entire dirs, contents of dirs, or individual files still, but particularly if you've used the
Sorry for your frustration.
I haven't worked on fpm lately because of a lack of energy and lack of time to do so. In the meantime, I invite anyone else to review + test this fix for style, backwards-compatibility, added tests, etc. If someone else reviews this and says it works well and doesn't break anything else, I'll be happy to click the merge button.