fix: halo_publish 插件 — runtime.Caller 解析config.json绝对路径
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user