You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a8ceeb7
Browse filesBrowse the repository at this point in the historyBrowse files
Fix Windows nightly test failures and absolute --patch-dir bound (#2049)
* Fix 7 Windows-only test failures in nightly CI
The scheduled CI run has been red on main for five nights. Its
`test (windows-latest, 1|2)` legs (nightly-only) fail seven tests
that pass on Linux and macOS, all from test-side assumptions about
Unix paths:
- an_absolute_patch_dir_inside_the_repository_is_read built its
package.json with format!, so the Windows path's backslashes were
invalid JSON escapes; build it with serde_json instead.
- five assertions matched `/`-separated substrings in user-facing
detail text that Windows prints with `\`; compare after mapping
`\` to `/`.
- pnpm_workspace_file_above_the_repository_fails_closed expected the
canonical `\\?\` path, but governing_workspace_file deliberately
strips that prefix; expect without_verbatim_prefix(file).
No production code changes; every assertion still checks the same
path on every OS.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeRDbxjatib28cpxPqQ
* Read a user-typed absolute --patch-dir as in-repo
On Windows the bound's repository root is canonical (`\\?\C:\...`)
while a script names its patch directory as users type it
(`C:\...`), and Path::starts_with treats the verbatim and plain disk
prefixes as different. Every absolute in-repo `--patch-dir` was
reported as outside the repository, protecting every npm package.
Compare both sides without the verbatim prefix, and make the test
spell the directory the way a user does (quoted, unprefixed).
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011f9aeRDbxjatib28cpxPqQ
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments