Merge pull request #2272 from deepseek-harness/codex/fix-packed-install-pwsh-path

test: fix packed install closure and macOS path comparisons
This commit is contained in:
Wenlu Wang
2026-08-11 21:13:13 +08:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -31,10 +31,10 @@ const hasPwsh = spawnSync(resolvePwshPath(), ['-NoLogo', '-NoProfile', '-NonInte
/** Normalize PowerShell's platform line endings (CRLF on Windows, LF elsewhere). */ /** Normalize PowerShell's platform line endings (CRLF on Windows, LF elsewhere). */
const lf = (text: string): string => text.replace(/\r\n/g, '\n') const lf = (text: string): string => text.replace(/\r\n/g, '\n')
/** Case-insensitive path equality on Windows (Get-Location may re-case the drive). */ /** Filesystem path equality across macOS temp symlinks and Windows drive-letter casing. */
function samePath(actual: string, expected: string): boolean { function samePath(actual: string, expected: string): boolean {
const norm = (value: string) => ( const norm = (value: string) => (
process.platform === 'win32' ? realpathSync.native(value).toLowerCase() : value process.platform === 'win32' ? realpathSync.native(value).toLowerCase() : realpathSync.native(value)
) )
return norm(actual) === norm(expected) return norm(actual) === norm(expected)
} }

View File

@@ -33,7 +33,10 @@ const WORKSPACE_CLOSURE = [
// from the registry). // from the registry).
'packages/sandbox/sandbox-windows-acl', 'packages/sandbox/sandbox-windows-acl',
'packages/sandbox/sandbox', 'packages/sandbox/sandbox',
'packages/core/session',
'packages/core/scope',
'packages/llm/llm', 'packages/llm/llm',
'packages/typert/type-meta',
'packages/attachment/attachment', 'packages/attachment/attachment',
'packages/util/brand', 'packages/util/brand',
'packages/util/timeout', 'packages/util/timeout',