diff --git a/go.mod b/go.mod index f267533..c816dda 100644 --- a/go.mod +++ b/go.mod @@ -8,10 +8,10 @@ require ( github.com/foomo/go v0.0.3 github.com/foomo/gocontemplate v0.2.0 github.com/foomo/sesamy-go v0.9.0 + github.com/go-viper/mapstructure/v2 v2.2.1 github.com/invopop/jsonschema v0.13.0 github.com/itchyny/json2yaml v0.1.4 github.com/joho/godotenv v1.5.1 - github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 github.com/pkg/errors v0.9.1 github.com/pterm/pterm v0.12.80 github.com/spf13/cobra v1.9.1 @@ -39,7 +39,6 @@ require ( github.com/fsnotify/fsnotify v1.8.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-viper/mapstructure/v2 v2.2.1 // indirect github.com/google/s2a-go v0.1.9 // indirect github.com/google/uuid v1.6.0 // indirect github.com/googleapis/enterprise-certificate-proxy v0.3.5 // indirect @@ -49,6 +48,7 @@ require ( github.com/lithammer/fuzzysearch v1.1.8 // indirect github.com/mailru/easyjson v0.9.0 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect + github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rivo/uniseg v0.4.7 // indirect diff --git a/pkg/cmd/config.go b/pkg/cmd/config.go index 1455d58..ffd678a 100644 --- a/pkg/cmd/config.go +++ b/pkg/cmd/config.go @@ -6,7 +6,7 @@ import ( "log/slog" "github.com/foomo/sesamy-cli/pkg/config" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper"