mirror of https://github.com/databricks/cli.git
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:
parent
2f4c0c1b56
commit
50d3bb4d56
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue