-
Notifications
You must be signed in to change notification settings - Fork 971
fix(artifact-graph): normalize paths for cross-platform glob compatibility #407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ility Add FileSystemUtils.toPosixPath() utility and consolidate scattered path normalization patterns. This fixes Windows test failures where fast-glob couldn't match paths containing backslashes. Root cause: path.join() uses backslashes on Windows, but fast-glob requires forward slashes for glob patterns on all platforms. Changes: - Add toPosixPath() to FileSystemUtils for cross-platform path handling - Update artifact-graph/state.ts to normalize glob patterns - Consolidate path normalization in update.ts, validator.ts, and json-converter.ts to use the new utility
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
🔇 Additional comments (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Summary
FileSystemUtils.toPosixPath()utility for cross-platform path normalization.replace(/\\/g, '/')patterns across the codebaseRoot Cause
On Windows,
path.join()uses backslashes (\) as separators. However,fast-globrequires forward slashes (/) for glob patterns on all platforms. When the artifact-graph state detection ran on Windows:Test plan
src/🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.