From 7dad7cc2caf6a3e0774439d30dce6e4f2376e566 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 26 Feb 2026 23:48:32 +0100 Subject: [PATCH] fix(ci): align sync boundary realpath canonicalization --- src/infra/boundary-path.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/infra/boundary-path.ts b/src/infra/boundary-path.ts index f47dbdbfb75..e0f6673dd05 100644 --- a/src/infra/boundary-path.ts +++ b/src/infra/boundary-path.ts @@ -415,7 +415,9 @@ export function resolvePathViaExistingAncestorSync(targetPath: string): string { } try { - const resolvedAncestor = path.resolve(fs.realpathSync.native(cursor)); + // Keep sync behavior aligned with async (`fsp.realpath`) to avoid + // platform-specific canonical alias drift (notably on Windows). + const resolvedAncestor = path.resolve(fs.realpathSync(cursor)); if (missingSuffix.length === 0) { return resolvedAncestor; } @@ -554,7 +556,7 @@ async function resolveSymlinkHopPath(symlinkPath: string): Promise { function resolveSymlinkHopPathSync(symlinkPath: string): string { try { - return path.resolve(fs.realpathSync.native(symlinkPath)); + return path.resolve(fs.realpathSync(symlinkPath)); } catch (error) { if (!isNotFoundPathError(error)) { throw error;