🐛fix: normalize file paths for cross-platform compatibility#917
Conversation
✅ Deploy Preview for kubestellar-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Welcome to KubeStellar! 🚀 Thank you for submitting this Pull Request. Before your PR can be merged, please ensure: ✅ DCO Sign-off - All commits must be signed off with ✅ PR Title - Must start with an emoji: ✨ (feature), 🐛 (bug fix), 📖 (docs), 🌱 (infra/tests), Getting Started with KubeStellar: Contributor Resources:
🌟 Help KubeStellar Grow - We Need Adopters! Our roadmap is driven entirely by adopter feedback. Whether you're using KubeStellar yourself or know someone who could benefit from multi-cluster Kubernetes: 📋 Take our Multi-Cluster Survey - Share your use cases and help shape our direction! A maintainer will review your PR soon. Feel free to ask questions in the comments or on Slack! |
|
Hi @Janhvibabani. Thanks for your PR. I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
There was a problem hiding this comment.
Pull request overview
This PR fixes a cross-platform compatibility issue where Windows-style backslashes in file paths caused build failures due to path mismatch during _meta validation. The fix normalizes all collected file paths to use forward slashes, ensuring consistent behavior across Windows, Linux, and macOS.
Changes:
- Normalized
relativePathto use forward slashes in thegetAllDocFilesfunction by replacing backslashes with forward slashes
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
cc @oksaumya |
Signed-off-by: JANHVI BABANI <114232474+Janhvibabani@users.noreply.github.com>
589b223 to
55a035f
Compare
|
@oksaumya i have addressed copilots suggestions of adding comments, can you review the PR it has been pending for many days. |
|
/ok-to-test |
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 975f637b13c55283a3c365c53e5637786145eb51 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oksaumya The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
📌 Fixes
Fixes #914
📝 Summary of Changes
This PR normalizes collected file paths to use forward slashes (
/) to ensureconsistent, cross-platform behavior across Windows, Linux, and macOS.
Previously, Windows-style backslashes (
\) could lead to inconsistent pageresolution and OS-specific build behavior.
Changes Made
relativePathto use forward slashes before pushing it to thecollected files list
_meta.jsonpage resolution during buildChecklist
Please ensure the following before submitting your PR:
Screenshots or Logs (if applicable)
👀 Reviewer Notes
Add any special notes for the reviewer here