Skip to content

followSymbolicLinks: false excludes symlinks #133

@benmccann

Description

@benmccann

netlify/build has some code similar to:

  const pathGroups = await glob('**', {
    absolute: true,
    dot: true,
    ignore: excludePatterns,
    onlyFiles: false,
    markDirectories: true,
    followSymbolicLinks: false,
  })
  const paths = pathGroups.filter((path) => !path.endsWith('/'))

This behaves differently in tinyglobby than in fast-glob

See here for a reproduction: https://github.com/benmccann/tinyglobby-symlinks

Blocks netlify/build#6354

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