Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: plugins are not installed when plugin-daemon is restarted and plugins are stored on s3 #36

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

tmokmss
Copy link
Contributor

@tmokmss tmokmss commented Feb 27, 2025

closes #35
closes langgenius/dify#14769
closes langgenius/dify#14534
I moved the exists operation from installedBucket.List to localStorage.List. This makes the exist function for S3 storage no longer called, fixing the issue without changing any existing behavior for localStorage.

Since some implementation of storage does not require to check the existence of a directory before list operation, I believe it makes more sense to run an exists function inside a list function of each implementation, instead of handling it from caller.

@Yeuoly Yeuoly merged commit 2db4e27 into langgenius:main Mar 7, 2025
1 check passed
@tmokmss tmokmss deleted the fix-installation-from-s3 branch March 7, 2025 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants