cloudfoundry/buildpack-packager

An `exclude_files` entry matches too much

mamacdon opened this issue · 6 comments

  1. Create a manifest.yml containing an innocent-looking exclude_files entry:

    ---
    language: ruby
    
    exclude_files:
    - log/
  2. Create a bunch of folders whose names end in 'log':

    $ mkdir log \
      && mkdir blog \
      && mkdir dialog
  3. Run the packager.

  4. The output zip is missing all 3 directories.

I expected it to exclude only folders named log, not folders whose names have log as a suffix.

@mamacdon, thanks for reporting this. We'll take a look.

Thanks! We've made the fix in the latest version of buildpack-packager, v2.2.1.

@jtarchie should we close?

Awesome, thanks for the quick response.

@jtarchie should we close?

Verified fix, closing.