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
fix(windows): comprehensive Windows CI test failure fixes
- **Task A**: Implement Windows path normalization utilities (pathwin.go)
- Handle drive-relative paths (C:foo\bar), mixed separators, UNC paths
- Add extended-length path support (\?\) for paths ≥248 chars
- Comprehensive test coverage for all Windows path edge cases
- **Task B**: Ensure parent directory creation everywhere
- Update atomicWriteFile (Windows & Unix) to use EnsureParentDirectory
- Fix writeStatusFileAtomic to use robust path utilities
- All file operations now create parent directories before writing
- **Task C**: Make atomic writes robust with retries and sync
- Enhanced Windows atomic write with proper path normalization
- Improved error handling for Windows file system race conditions
- Added comprehensive parent directory creation before writes
- **Task F**: Relax traversal checks for valid patterns
- Remove overly strict ".." checking after filepath.Clean()
- Allow legitimate patterns like "./././tmp/test" to be normalized
- Maintain security with proper validation after absolute path resolution
Fixes Windows CI failures related to:
- Parent directory creation for drive-relative paths
- Atomic write operations failing due to missing directories
- Path normalization for Windows-specific edge cases
- Overly restrictive traversal pattern rejection
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments