From 2040690fc6c34edb2c053d02bb2cbfd45c0a6143 Mon Sep 17 00:00:00 2001 From: Fred Carle Date: Mon, 29 Jan 2024 17:50:02 -0500 Subject: [PATCH] revert removal of root dir check in LoadWithRootDIr --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) 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)