Repository navigation
fix: wire UV_CACHE_DIR for plugin_daemon (Fixes #42433) - #42481
Merged
wylswz merged 4 commits intoSep 18, 2026
Merged
Conversation
Pass UV_CACHE_DIR=/tmp/.uv-cache to plugin_daemon so uv dependency installs avoid the bind-mounted plugin working directory, matching shared.env guidance and fixing permission denied errors on local plugin installs. Fixes langgenius#42433
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #42481 +/- ##
==========================================
+ Coverage 87.47% 87.52% +0.04%
==========================================
Files 5468 5462 -6
Lines 316809 316828 +19
Branches 63506 63477 -29
==========================================
+ Hits 277127 277290 +163
+ Misses 34300 34169 -131
+ Partials 5382 5369 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1 task done
4 of 5 tasks
wylswz
reviewed
Sep 18, 2026
Address review on langgenius#42481: do not default UV_CACHE_DIR in Compose or the root .env.example; document the optional override in plugin-daemon.env.example for Docker/WSL bind-mount cases.
Drop baked-in UV_CACHE_DIR from docker/.env.example and shared.env.example so plugin_daemon keeps PLUGIN_WORKING_PATH/.uv-cache unless operators opt in via docker/.env (documented in plugin-daemon.env.example).
Contributor
Author
|
Hi @wylswz's I've made these changes:
WSL/bind-mount workaround remains: add |
wylswz
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #42433
When installing local plugins in Docker (especially on WSL),
uvuses a cache under the bind-mountedPLUGIN_WORKING_PATH(/app/storage/cwd/.uv-cache). Mixed host/container ownership causesPermission denied (os error 13)during cache renames.This PR wires
UV_CACHE_DIR=/tmp/.uv-cacheinto theplugin_daemonservice in Docker Compose and documents it in env examples.Related change
The plugin daemon must honor
UV_CACHE_DIRinstead of hardcodingPLUGIN_WORKING_PATH/.uv-cache. Companion change: Souravrajvi0/dify-plugin-daemon#1Checklist
dify-plugin-daemonrelease for full effect