diff --git a/gitnexus/src/core/ingestion/languages/c/header-scan.ts b/gitnexus/src/core/ingestion/languages/c/header-scan.ts index 033bfd9eb..034e27f4d 100644 --- a/gitnexus/src/core/ingestion/languages/c/header-scan.ts +++ b/gitnexus/src/core/ingestion/languages/c/header-scan.ts @@ -48,7 +48,10 @@ function walk(dir: string, root: string, out: Set): void { } else if (entry.isFile()) { const ext = name.slice(name.lastIndexOf('.')); if (HEADER_EXTENSIONS.has(ext)) { - out.add(relative(root, full)); + // Normalize to forward slashes for cross-platform consistency. + // path.relative() returns backslash-separated paths on Windows, + // but the scope-resolution pipeline uses forward slashes uniformly. + out.add(relative(root, full).replace(/\\/g, '/')); } } }