Repository navigation
fix: Build platform correct path when serving files. - #207
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #207 +/- ##
==========================================
+ Coverage 91.85% 91.90% +0.04%
==========================================
Files 85 85
Lines 3156 3174 +18
Branches 1631 1639 +8
==========================================
+ Hits 2899 2917 +18
Misses 257 257 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@coderabbitai - The first testrun for macos latest failed in a websocket test. Please file an issue to track this flaky test. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 2796 🏁 Script executed: Length of output: 22546 🏁 Script executed: Length of output: 15599 🏁 Script executed: Length of output: 7658 🏁 Script executed: Length of output: 79 🏁 Script executed: Length of output: 1809 🏁 Script executed: Length of output: 122 🏁 Script executed: Length of output: 1854 🏁 Script executed: Length of output: 2137 @SandPod - I've created issue #208 to track the flaky websocket test that failed on macOS-latest during the first test run. Issue Details:
The test failed initially because it didn't receive the expected The issue includes:
🐰 |
Fixes a minor issue where we would not build valid paths for the windows platform when serving files.
Before this fix, given a static root directory located at
C:\\my\static\root\and a request path for a file located atassets/image.pngthe following path would be constructedC:\\my\static\root\assets/image.png(Note the mix of forward and backward slashes).Windows handles this gracefully, so can't catch this in the tests, but it was incorrect behavior.
If you have a suggestion on how to capture this in the tests I would appreciate it.
Pre-Launch Checklist
Please ensure that your PR meets the following requirements before submitting:
///), ensuring consistency with existing project documentation.Breaking Changes
Simple path fix.