Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

ExcludeFiles doesn't check against contents of included subdirectory. #30

@dawnmist

Description

@dawnmist

For the config:

const rpmOptions = {
  name: packageName,
  version: gitVersion.GitVersion,
  release: 1,
  buildArch: 'noarch',
  keepTemp: false,
  files: [{ cwd: './dist', src: '*', dest: `/opt/${packageName}/` }],
  excludeFiles: ['./dist/static/js/*.js.map']
};

My expected output would be that all files inside the ./dist directory and subdirectories should be checked against the exclude paths.

What actually happens is that the check stops at the level of the first subdirectory, i.e. the paths checked includes ./dist/static, and since that path is not itself in the excludeFiles the entire static subdirectory is included without checking any of the files within that directory against the excludeFiles list. i.e. all the *.js.map files inside the static/js subdirectory end up being added to the rpm instead of being excluded because those file paths never get tested against the excludeFiles list.

Tested on rpm_builder v1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions