diff --git a/go.mod b/go.mod index b9925b1149f..9bd06f13a20 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,7 @@ require ( github.com/dhowden/tag v0.0.0-20240122214204-713ab0e94639 github.com/dustin/go-humanize v1.0.1 github.com/gavv/httpexpect/v2 v2.16.0 + github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 github.com/gofrs/uuid/v5 v5.0.0 github.com/golang-jwt/jwt/v5 v5.2.0 github.com/golang/gddo v0.0.0-20210115222349-20d68f94ee1f @@ -28,7 +29,6 @@ require ( github.com/justincampbell/bigduration v0.0.0-20160531141349-e45bf03c0666 github.com/labstack/echo/v4 v4.11.4 github.com/leonelquinteros/gotext v1.5.2 - github.com/mitchellh/mapstructure v1.5.0 github.com/mssola/user_agent v0.6.0 github.com/ncw/swift/v2 v2.0.2 github.com/nightlyone/lockfile v1.0.0 @@ -84,6 +84,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect github.com/mitchellh/go-wordwrap v1.0.1 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/onsi/ginkgo v1.16.5 // indirect github.com/onsi/gomega v1.18.1 // indirect github.com/pelletier/go-toml/v2 v2.1.0 // indirect diff --git a/go.sum b/go.sum index 8a7b1e72f50..57e52f24531 100644 --- a/go.sum +++ b/go.sum @@ -65,6 +65,8 @@ github.com/gavv/httpexpect/v2 v2.16.0 h1:Ty2favARiTYTOkCRZGX7ojXXjGyNAIohM1lZ3vq github.com/gavv/httpexpect/v2 v2.16.0/go.mod h1:uJLaO+hQ25ukBJtQi750PsztObHybNllN+t+MbbW8PY= github.com/go-stack/stack v1.6.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 h1:TQcrn6Wq+sKGkpyPvppOz99zsMBaUOKXq6HSv655U1c= +github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/gofrs/uuid/v5 v5.0.0 h1:p544++a97kEL+svbcFbCQVM9KFu0Yo25UoISXGNNH9M= diff --git a/model/instance/sponsors.go b/model/instance/sponsors.go index 2d43fd0c54f..82bad0e05f9 100644 --- a/model/instance/sponsors.go +++ b/model/instance/sponsors.go @@ -4,7 +4,7 @@ import ( "path/filepath" "github.com/cozy/cozy-stack/pkg/config/config" - "github.com/mitchellh/mapstructure" + "github.com/go-viper/mapstructure/v2" ) type AppLogos struct {