Skip to content

Commit

Permalink
fix(i): Revert removal of root dir check in LoadWithRootDIr (#2269)
Browse files Browse the repository at this point in the history
## Relevant issue(s)

Resolves #2268

## Description

Sorry guys, went one step too far on that last fix (I was the cause of
the bug btw). removing the re-added lines cause the a config error on
init.
  • Loading branch information
fredcarle authored Jan 30, 2024
1 parent 4da6ed0 commit 7e5a444
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7e5a444

Please sign in to comment.