Skip to content

collection add does not follow symbolic links #423

@hassaans

Description

@hassaans

Problem

qmd collection add (and qmd update) does not traverse symbolic links when scanning for files. Collections whose root directory contains symlinked subdirectories silently skip all files behind those symlinks.

In my case, a collection rooted at a directory that contains symlinks to repos picks up only the 26 non-symlinked metadata files instead of the ~1,180 total files.

Root cause

fast-glob is called with followSymbolicLinks: false in qmd.js:

const allFiles = await fastGlob(globPattern, {
    cwd: resolvedPwd,
    onlyFiles: true,
    followSymbolicLinks: false,  // <-- here
    dot: false,
    ignore: excludeDirs.map(d => `**/${d}/**`),
});

Suggested fix

Either:

  1. Default followSymbolicLinks to true, or
  2. Make it configurable per-collection in index.yml (e.g. follow_symlinks: true)

Environment

  • qmd 1.0.7
  • macOS, Apple Silicon
  • Node 24

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