From 304b28282c370748a7c72a7d049e7ddfef055c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A9trancourt?= Date: Thu, 18 Aug 2022 13:57:44 +0000 Subject: [PATCH] fix: execute external init plugins before builtins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Bétrancourt --- cmd/utask/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/utask/root.go b/cmd/utask/root.go index 0952a244..a8f63678 100644 --- a/cmd/utask/root.go +++ b/cmd/utask/root.go @@ -146,12 +146,12 @@ var rootCmd = &cobra.Command{ service := &plugins.Service{Store: store, Server: server} for _, err := range []error{ + // run custom initialization code built as *.so plugins + plugins.InitializersFromFolder(utask.FInitializersFolder, service), // register builtin initializers builtin.RegisterInit(service), // register builtin executors builtin.Register(), - // run custom initialization code built as *.so plugins - plugins.InitializersFromFolder(utask.FInitializersFolder, service), // load custom executors built as *.so plugins plugins.ExecutorsFromFolder(utask.FPluginFolder), // load the functions