[PR #581] feat: support trust-host and fix race condition #595

Open
opened 2026-02-16 01:16:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/581
Author: @fatelei
Created: 1/25/2026
Status: 🔄 Open

Base: mainHead: install_specific_pypi


📝 Commits (1)

  • 32109a0 feat: add trust host option, fix race condition

📊 Changes

6 files changed (+582 additions, -110 deletions)

View changed files

📝 .env.example (+3 -0)
📝 README.md (+22 -0)
📝 internal/core/local_runtime/dependency_installation_test.go (+2 -0)
📝 internal/core/local_runtime/setup_python_environment.go (+255 -107)
internal/core/local_runtime/setup_python_environment_test.go (+296 -0)
📝 internal/types/app/config.go (+4 -3)

📄 Description

Description

fix #580

use env

PIP_MIRROR_URL=

allow use index url to install plugin dep

fix race condition

errMsg and lastActiveAt in different coroutine, there is a race condition.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 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/581 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 1/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `install_specific_pypi` --- ### 📝 Commits (1) - [`32109a0`](https://github.com/langgenius/dify-plugin-daemon/commit/32109a08ff3b077569594761e98b4e2c412523aa) feat: add trust host option, fix race condition ### 📊 Changes **6 files changed** (+582 additions, -110 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+3 -0) 📝 `README.md` (+22 -0) 📝 `internal/core/local_runtime/dependency_installation_test.go` (+2 -0) 📝 `internal/core/local_runtime/setup_python_environment.go` (+255 -107) ➕ `internal/core/local_runtime/setup_python_environment_test.go` (+296 -0) 📝 `internal/types/app/config.go` (+4 -3) </details> ### 📄 Description ## Description fix #580 use env ``` PIP_MIRROR_URL= ``` allow use index url to install plugin dep fix race condition errMsg and lastActiveAt in different coroutine, there is a race condition. ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [x] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [x] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <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:16:27 -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#595