diff --git a/cmd/root.go b/cmd/root.go index f53d493..5afc031 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -5,8 +5,8 @@ import ( "net" "os" - magellan "github.com/bikeshack/magellan/internal" - "github.com/bikeshack/magellan/internal/api/smd" + magellan "github.com/OpenCHAMI/magellan/internal" + "github.com/OpenCHAMI/magellan/internal/api/smd" "github.com/spf13/cobra" "github.com/spf13/viper" ) diff --git a/internal/config.go b/internal/config.go index 6e686a4..74df39b 100644 --- a/internal/config.go +++ b/internal/config.go @@ -3,7 +3,7 @@ package magellan import ( "fmt" - "github.com/bikeshack/magellan/internal/util" + "github.com/OpenCHAMI/magellan/internal/util" "github.com/spf13/viper" ) @@ -16,6 +16,7 @@ func LoadConfig(path string) error { // ...no search paths set intentionally, so config has to be set explicitly // ...also, the config file will not save anything // ...and finally, parameters passed to CLI have precedence over config values + viper.AutomaticEnv() if err := viper.ReadInConfig(); err != nil { if _, ok := err.(viper.ConfigFileNotFoundError); ok { return fmt.Errorf("config file not found: %w", err) @@ -25,4 +26,4 @@ func LoadConfig(path string) error { } return nil -} \ No newline at end of file +}