From 234929e5ed3a64a03a054b5054ff5b27b1337df8 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 16 Feb 2022 08:58:49 +0100 Subject: [PATCH] Fix loading config from given path --- config/load.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/load.go b/config/load.go index 5c564b4..1cc0c3f 100644 --- a/config/load.go +++ b/config/load.go @@ -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 {