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" randompkg "git.yeij.top/AskaEth/Cyrene-Plugins/random"
markdownpkg "git.yeij.top/AskaEth/Cyrene-Plugins/markdown" markdownpkg "git.yeij.top/AskaEth/Cyrene-Plugins/markdown"
json_opspkg "git.yeij.top/AskaEth/Cyrene-Plugins/json" 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 }) { 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() { for _, t := range (&json_opspkg.JSONPlugin{}).Tools() {
registry.Register(t) registry.Register(t)
} }
for _, t := range (&halo_publishpkg.HaloPublishPlugin{}).Tools() {
registry.Register(t)
}
} }
+2
View File
@@ -9,6 +9,7 @@ require (
git.yeij.top/AskaEth/Cyrene/pkg/dashscope v0.0.0 git.yeij.top/AskaEth/Cyrene/pkg/dashscope v0.0.0
git.yeij.top/AskaEth/Cyrene/pkg/logger v0.0.0 git.yeij.top/AskaEth/Cyrene/pkg/logger v0.0.0
git.yeij.top/AskaEth/Cyrene-Plugins v0.0.0 git.yeij.top/AskaEth/Cyrene-Plugins v0.0.0
git.yeij.top/AskaEth/Cyrene-Plugins/halo_publish v0.0.0
gopkg.in/yaml.v3 v3.0.1 gopkg.in/yaml.v3 v3.0.1
) )
@@ -17,4 +18,5 @@ replace (
git.yeij.top/AskaEth/Cyrene/pkg/dashscope => ../pkg/dashscope git.yeij.top/AskaEth/Cyrene/pkg/dashscope => ../pkg/dashscope
git.yeij.top/AskaEth/Cyrene/pkg/logger => ../pkg/logger git.yeij.top/AskaEth/Cyrene/pkg/logger => ../pkg/logger
git.yeij.top/AskaEth/Cyrene-Plugins => ../cyrene-plugins git.yeij.top/AskaEth/Cyrene-Plugins => ../cyrene-plugins
git.yeij.top/AskaEth/Cyrene-Plugins/halo_publish => ../plugins/halo_publish
) )