fix(installer): resolve symlinks before ancestor conflict walk

Use fs.realpath() instead of path.resolve() so the ancestor directory
walk follows the physical filesystem path, not the logical symlink path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Alex Verkhovsky 2026-02-25 12:39:59 -07:00
parent 886a070d2b
commit 1c789c05e2
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ LOAD and execute from: {project-root}/{{bmadFolderName}}/{{path}}
const targetDir = this.installerConfig?.target_dir; const targetDir = this.installerConfig?.target_dir;
if (!targetDir) return null; if (!targetDir) return null;
const resolvedProject = path.resolve(projectDir); const resolvedProject = await fs.realpath(path.resolve(projectDir));
let current = path.dirname(resolvedProject); let current = path.dirname(resolvedProject);
const root = path.parse(current).root; const root = path.parse(current).root;