Skip to content

Commit

Permalink
fix: bug where env variables would not be read correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastreml committed Jan 18, 2024
1 parent 8f0d564 commit 551f07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func initConfig(cfgFile string) {

viper.SetEnvPrefix("sparrow")
dotreplacer := strings.NewReplacer(".", "_")
viper.EnvKeyReplacer(dotreplacer)
viper.SetEnvKeyReplacer(dotreplacer)
viper.AutomaticEnv()

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

0 comments on commit 551f07c

Please sign in to comment.