Comfy-Org / Comfy-Org/ComfyUI-Manager
CNR 插件版本比較使用字串比較而非數值比較,導致高版本被標記為衝突
- Dominant language
- Python
- Stars
- 16.1k
- Forks
- 2.5k
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 13
Description
## 問題描述
當 ComfyRegistry 中某個插件的已安裝版本比 registry 記錄的最新版本更新時,ComfyUI-Manager 會錯認地將已安裝版本標記為「衝突」。
經診斷,這是因為 Manager 使用**字串比較**而非**數值比較**來比對版本號。
## 複現步驟
1. 安裝 minimax-h3-audio-t8 v1.78.1
2. ComfyRegistry 記錄的最新版本是 1.47.0
3. Manager 認為 1.47.0 > 1.78.1(字串比較錯誤)
4. 顯示衝突警告
## 预期行為
應認使用 `packaging.version.parse()` 或類似方法進行數值版本比較:
- `1.78.1 > 1.47.0` ✅ 正確
- 字串比較: "1.47.0" > "1.78.1" ❌ 錯誤
## 影響範圍
所有 ComfyRegistry (CNR) 插件都可能受此影響,特別是當註冊版本落後於實際 GitHub 版本時。
## 建議修復
在 Manager 的版本比較邏輯中使用 semantic versioning 比較庫(如 Python 的 `packaging` 套件)。
以上由AI代筆整理
Contributor guide
No contributing guide indexed for this repository
Research direction
Search the Manager's ComfyRegistry plugin version-comparison logic and reproduce the case with installed version 1.78.1 and registry version 1.47.0. Check how versions are parsed and how the conflict warning is decided; done means newer installed versions are not marked as conflicts and the relevant regression test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100