Skip to content

Commit 8ffe4cd

Browse files
committed
fix: viper update contains breaking change
- the config type needs to be set
1 parent d47889a commit 8ffe4cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/pkg/config/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ func initConfig(configPath string) {
127127
// This hack is required to allow creating the config file with `viper.WriteConfig`
128128
// see https://github.com/spf13/viper/issues/851#issuecomment-789393451
129129
viper.SetConfigFile(configFilePath)
130+
viper.SetConfigType(configFileExtension)
130131

131132
f, err := os.Open(configFilePath)
132133
if !os.IsNotExist(err) {

0 commit comments

Comments
 (0)