Plugins: Add inititialization stage to plugin loader pipeline (#72667)

* first pass

* migrate tests

* simplify

* fix comments

* fix linter

* nil checks

* remove comment
This commit is contained in:
Will Browne
2023-08-02 18:29:12 +02:00
committed by GitHub
parent 77e7ae2a1b
commit ad2705fa0b
17 changed files with 1809 additions and 1166 deletions

View File

@ -47,7 +47,7 @@ func New(cfg *config.Cfg, opts Opts) *Bootstrap {
opts.ConstructFunc = DefaultConstructFunc(signature.DefaultCalculator(cfg), assetpath.DefaultService(cfg))
}
if len(opts.DecorateFuncs) == 0 {
if opts.DecorateFuncs == nil {
opts.DecorateFuncs = DefaultDecorateFuncs
}