mirror of https://github.com/databricks/cli.git
Fixed pre-init script order (#1348)
## Changes `preinit` script needs to be executed before processing configuration files to allow the script to modify the configuration or add own configuration files.
This commit is contained in:
parent
acec872298
commit
2f4c0c1b56
|
@ -9,14 +9,17 @@ import (
|
|||
|
||||
func DefaultMutators() []bundle.Mutator {
|
||||
return []bundle.Mutator{
|
||||
// Execute preinit script before loading any configuration files.
|
||||
// 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.
|
||||
VerifyCliVersion(),
|
||||
|
||||
// Execute preinit script after loading all configuration files.
|
||||
scripts.Execute(config.ScriptPreInit),
|
||||
EnvironmentsToTargets(),
|
||||
InitializeVariables(),
|
||||
DefineDefaultTarget(),
|
||||
|
|
Loading…
Reference in New Issue