fix: rename temp downloaded file to given cache path#332
Conversation
resolves #330 This simply keeps the downloaded temp file in the same directory as the destination of the downloaded file. When download is done, the file is renamed to the specified file name. This also removes the `tempfile` dependency from production code. It is still used heavily in tests.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughRefactors clang-installer download flow to write to a deterministic temp path and atomically persist via fs::rename while mapping IO errors to a new ChangesTemporary file handling refactor
CI workflow trigger update
🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested labels: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
run CI tests on installer crate too
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #332 +/- ##
==========================================
- Coverage 90.94% 90.91% -0.04%
==========================================
Files 22 22
Lines 3368 3378 +10
==========================================
+ Hits 3063 3071 +8
- Misses 305 307 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
resolves #330
This simply keeps the downloaded temp file in the same directory as the destination of the downloaded file. When download is done, the file is renamed to the specified file name.
This also removes the
tempfiledependency from production code. It is still used heavily in tests.Summary by CodeRabbit
Bug Fixes
Breaking Changes
Chores