Execute preinit after entry point to make sure scripts are loaded (#1351)

## Changes
Execute preinit after entry point to make sure scripts are loaded
This commit is contained in:
Andrew Nester 2024-04-08 16:32:21 +02:00 committed by GitHub
parent 2f4c0c1b56
commit 50d3bb4d56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -9,12 +9,12 @@ import (
func DefaultMutators() []bundle.Mutator { func DefaultMutators() []bundle.Mutator {
return []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 // It needs to be done before processing configuration files to allow
// the script to modify the configuration or add own configuration files. // the script to modify the configuration or add own configuration files.
scripts.Execute(config.ScriptPreInit), scripts.Execute(config.ScriptPreInit),
loader.EntryPoint(),
loader.ProcessRootIncludes(), loader.ProcessRootIncludes(),
// Verify that the CLI version is within the specified range. // Verify that the CLI version is within the specified range.