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"
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user