Skip to content

Commit 599adc7

Browse files
authored
Merge pull request #598 from UberPinguin/fix-mapstructure-dependency
597: Update mapstructure dependency to match viper.
2 parents 012b2fd + c885c1a commit 599adc7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pkg/cfg/cfg.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
"github.com/golang-jwt/jwt"
3030
"github.com/kelseyhightower/envconfig"
31-
"github.com/mitchellh/mapstructure"
31+
"github.com/go-viper/mapstructure/v2"
3232
"github.com/spf13/viper"
3333
securerandom "github.com/theckman/go-securerandom"
3434
"go.uber.org/zap"
@@ -374,8 +374,8 @@ func fixConfigOptions() {
374374
}
375375

376376
// use viper and mapstructure check to see if
377-
// https://pkg.go.dev/github.com/spf13/viper@v1.6.3?tab=doc#Unmarshal
378-
// https://pkg.go.dev/github.com/mitchellh/mapstructure?tab=doc#DecoderConfig
377+
// https://pkg.go.dev/github.com/spf13/viper@v1.20.1?tab=doc#Unmarshal
378+
// https://github.com/go-viper/mapstructure
379379
func checkConfigFileWellFormed() error {
380380
opt := func(dc *mapstructure.DecoderConfig) {
381381
dc.ErrorUnused = true

0 commit comments

Comments
 (0)