diff --git a/config/config.go b/config/config.go index 22496d2240..c179fc5db3 100644 --- a/config/config.go +++ b/config/config.go @@ -130,6 +130,10 @@ func (cfg *Config) LoadWithRootdir(withRootdir bool) error { return err } + if err := cfg.LoadRootDirFromFlagOrDefault(); err != nil { + return err + } + if withRootdir { if err := cfg.v.ReadInConfig(); err != nil { return NewErrReadingConfigFile(err)