Fix temp files on Windows#199
Conversation
WalkthroughThreads a base temporary directory from the Gradle task through DependencyModule into the worker parameters; the worker constructs per-execution temp subpaths from that base and TempFileWriter is instantiated with the provided temp directory path. Changes
Sequence Diagram(s)mermaid Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
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 |
025a289 to
97328ed
Compare
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
svg-to-compose-gradle-plugin/src/main/kotlin/dev/tonholo/s2c/gradle/tasks/ParseSvgToComposeIconTask.kt (1)
56-66: MovetemporaryDiraccess from initialization to task execution.Accessing
temporaryDirduring task initialization (line 56-66) creates a race condition withgradle clean. Per Gradle's design,gradle cleancan deletebuild/tmpafter the configuration phase, leaving the task with a stale directory reference at execution time. Move thetempDirectoryparameter into the@TaskActionmethod or use lazy initialization to avoid this. WhileTempFileWriterdoes auto-create directories viacreateDirectories(), relying on this masks the underlying issue of accessingtemporaryDirtoo early in the build lifecycle.
rafaeltonholo
left a comment
There was a problem hiding this comment.
LGTM! Thanks for fixing this issue!
|
Thank you for accepting this PR. Is it possible to release a new version with the changes? |
|
Hi @walterbrebels, sorry for the delay, I'm not having too much time to check this project rn. There are a few other things I wanted to add before publishing a new version, but I'm going to try publishing it soon! |
@walterbrebels, I believe this will take way more time than I was expecting. I've published a new version Sorry for keeping you waiting! |
Fixes #174
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.