-
Notifications
You must be signed in to change notification settings - Fork 978
Open
Description
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:
- Default
followSymbolicLinkstotrue, or - Make it configurable per-collection in
index.yml(e.g.follow_symlinks: true)
Environment
- qmd 1.0.7
- macOS, Apple Silicon
- Node 24
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels