[PR #204] [MERGED] feat(plugin): enhance getPluginSdkVersion to support version ranges a… #368

Closed
opened 2026-02-16 01:15:45 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/204
Author: @Yeuoly
Created: 4/14/2025
Status: Merged
Merged: 4/14/2025
Merged by: @Yeuoly

Base: mainHead: enhance/version-compare


📝 Commits (1)

  • e18a6b5 feat(plugin): enhance getPluginSdkVersion to support version ranges and improve error handling

📊 Changes

2 files changed (+76 additions, -56 deletions)

View changed files

📝 internal/core/plugin_manager/local_runtime/environment_python.go (+53 -3)
📝 internal/core/plugin_manager/local_runtime/version_match_test.go (+23 -53)

📄 Description

…nd improve error handling

  • Updated the getPluginSdkVersion function to parse version ranges with multiple constraints, returning the highest version found.
  • Improved error handling to provide clearer feedback when no valid version is found.
  • Added unit tests to validate the new functionality and ensure correctness across various requirement formats.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/204 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 4/14/2025 **Status:** ✅ Merged **Merged:** 4/14/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `enhance/version-compare` --- ### 📝 Commits (1) - [`e18a6b5`](https://github.com/langgenius/dify-plugin-daemon/commit/e18a6b54d59e9f48eb011290ef44226aca1743d5) feat(plugin): enhance getPluginSdkVersion to support version ranges and improve error handling ### 📊 Changes **2 files changed** (+76 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `internal/core/plugin_manager/local_runtime/environment_python.go` (+53 -3) 📝 `internal/core/plugin_manager/local_runtime/version_match_test.go` (+23 -53) </details> ### 📄 Description …nd improve error handling - Updated the getPluginSdkVersion function to parse version ranges with multiple constraints, returning the highest version found. - Improved error handling to provide clearer feedback when no valid version is found. - Added unit tests to validate the new functionality and ensure correctness across various requirement formats. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:45 -05:00
yindo closed this issue 2026-02-16 01:15:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#368