Skip to content

ignore option is not working with relative path #570

@Ffloriel

Description

@Ffloriel

ignore using a relative path is not working as expected with the cwd option.
For context, this is used in this repo. When attempting to update from 8 to 10, the tests are failing because of this issue.

To reproduce, in node-glob/test/ignore.ts, you can add the following test case:

  [
    './*',
    './b',
    j(['abcdef', 'abcfed', 'bc', 'c', 'cb', 'symlink', 'x', 'z']),
    'a',
  ],

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