From f591c8f797e35635fb5eb0e4465c77b6a073896b Mon Sep 17 00:00:00 2001 From: erwin <86267044+erwin-k@users.noreply.github.com> Date: Thu, 18 Nov 2021 12:39:37 +0100 Subject: [PATCH] Fix plugin addition (#1717) --- api/option.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/option.go b/api/option.go index ab41dfa2051..e1a750fd53c 100644 --- a/api/option.go +++ b/api/option.go @@ -15,7 +15,7 @@ func NoPlugins() Option { func AddPlugin(p plugin.Plugin) Option { return func(cfg *config.Config, plugins *[]plugin.Plugin) { - *plugins = append(*plugins, p) + *plugins = append([]plugin.Plugin{p}, *plugins...) } }