Skip to content

Investigate the possibility of using picomatch.scan instead of glob-parent #482

Open
@mrmlnc

Description

@mrmlnc

Currently, fast-glob has two dependencies that can extract the base static directory from patterns.

Right now we are using glob-parent for this, which has not had new versions released for a long time and has several bugs (gulpjs/glob-parent#63, gulpjs/glob-parent#60).

The purpose of the issue is to make a decision:

  1. Switch to picomatch.scan instead of glob-parent without losing accuracy.
  2. Take the time to fix the issues of the glob-parent package.

Related issues on the fast-glob side:

  1. fastGlob("?/*") fails to match #380, cannot be fixed without changes in the glob-parent package.
  2. Strange behavior at Windows root dir like D:/ #375, can be fixed on your side with hacks.
  3. Inconsistent behavior with escaped single quotes & brace expansion #480, the second part of the issue involves removing escape characters from the pattern's base static part. A useful option is unescape', which is not present in the glob-parent` package.
  4. Escaping paths with backslashes in dir names #262, the base directory can be . for a\\/*.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions