forked from halo-dev/halo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: failed to load plugin when add fixedPluginPath dynamically in de…
…velopment mode (halo-dev#2941) #### What type of PR is this? /kind bug /area core #### What this PR does / why we need it: 修复插件开发模式下后续增加的 fixedPluginPath 项无法被加载的问题 - 目前启动时会加载 pluginRepository 的所有 path,fixedPluginPath 被 DefaultDevelopmentPluginRepository 管理,所以在遍历 fixedPluginPath 加载时可能已经被加载过,需要判断是否被加载过,但即使被加载过也不能跳过而要继续执行创建/更新 plugin.yaml 资源的逻辑 - 创建/更新 plugin.yaml 时需要使用重试机制防止因为乐观锁冲突导致 Halo 无法启动 see halo-dev#2939 for more detail #### Which issue(s) this PR fixes: Fixes halo-dev#2939 #### Special notes for your reviewer: /cc @halo-dev/sig-halo #### Does this PR introduce a user-facing change? ```release-note 修复插件开发模式下后续增加的 fixedPluginPath 项无法被加载的问题 ```
- Loading branch information
Showing
1 changed file
with
24 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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