From 50d3bb4d56591772de07697c1f641e302a694e79 Mon Sep 17 00:00:00 2001 From: Andrew Nester Date: Mon, 8 Apr 2024 16:32:21 +0200 Subject: [PATCH] Execute preinit after entry point to make sure scripts are loaded (#1351) ## Changes Execute preinit after entry point to make sure scripts are loaded --- bundle/config/mutator/mutator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundle/config/mutator/mutator.go b/bundle/config/mutator/mutator.go index 9a2c828b..ae0d7e5f 100644 --- a/bundle/config/mutator/mutator.go +++ b/bundle/config/mutator/mutator.go @@ -9,12 +9,12 @@ import ( func DefaultMutators() []bundle.Mutator { return []bundle.Mutator{ - // Execute preinit script before loading any configuration files. + loader.EntryPoint(), + + // Execute preinit script before processing includes. // It needs to be done before processing configuration files to allow // the script to modify the configuration or add own configuration files. scripts.Execute(config.ScriptPreInit), - - loader.EntryPoint(), loader.ProcessRootIncludes(), // Verify that the CLI version is within the specified range.