fix: halo_publish 插件 — runtime.Caller 解析config.json绝对路径

This commit is contained in:
2026-06-26 12:57:50 +08:00
parent 839522e1d4
commit 0d6970a2d3
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -11,6 +11,7 @@ import (
randompkg "git.yeij.top/AskaEth/Cyrene-Plugins/random"
markdownpkg "git.yeij.top/AskaEth/Cyrene-Plugins/markdown"
json_opspkg "git.yeij.top/AskaEth/Cyrene-Plugins/json"
halo_publishpkg "git.yeij.top/AskaEth/Cyrene-Plugins/halo_publish"
)
func registerPlugins(registry interface{ Register(plgSDK.Tool) error }) {
@@ -35,4 +36,7 @@ func registerPlugins(registry interface{ Register(plgSDK.Tool) error }) {
for _, t := range (&json_opspkg.JSONPlugin{}).Tools() {
registry.Register(t)
}
for _, t := range (&halo_publishpkg.HaloPublishPlugin{}).Tools() {
registry.Register(t)
}
}