fast-glob icon indicating copy to clipboard operation
fast-glob copied to clipboard

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

Open mrmlnc opened this issue 1 year ago • 0 comments

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 (https://github.com/gulpjs/glob-parent/issues/63, https://github.com/gulpjs/glob-parent/issues/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. https://github.com/mrmlnc/fast-glob/issues/380, cannot be fixed without changes in the glob-parent package.
  2. https://github.com/mrmlnc/fast-glob/issues/375, can be fixed on your side with hacks.
  3. https://github.com/mrmlnc/fast-glob/issues/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. https://github.com/mrmlnc/fast-glob/issues/262, the base directory can be . for a\\/*.

mrmlnc avatar Jan 07 '25 21:01 mrmlnc