Skip to content

ignore option is not working with relative path #570

Closed

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',
  ],

Activity

  1. added a commit that references this issue on Jan 18, 2024
  2. isaacs commented on Mar 28, 2024

    @isaacs
    Owner

    Specifically, this is an issue with an ignore pattern that starts with ./. Relative patterns starting with ../ or some other string or pattern work fine.

  3. added a commit that references this issue on Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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