Skip to content

Commit

Permalink
Fix loading config from given path
Browse files Browse the repository at this point in the history
  • Loading branch information
prskr committed Feb 16, 2022
1 parent 7eb4d67 commit 234929e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ func Load(workingDir, configFile string) (cfg *Components, err error) {
return nil, err
} else {
loader.AddConfigPath(home)
loader.AddConfigPath(workingDir)
loader.SetConfigName("goveal")
loader.SetConfigType("yaml")
}

loader.AddConfigPath(workingDir)
loader.SetConfigName("goveal")
loader.SetConfigType("yaml")
loader.AutomaticEnv()

if err = loader.ReadInConfig(); err == nil {
Expand Down

0 comments on commit 234929e

Please sign in to comment.