Consider Migrating from mitchellh/mapstructure to go-viper/mapstructure
bflad opened this issue · comments
Brian Flad commented
SDK version
v2.31.0
Use-cases
The mitchellh/mapstructure
dependency is being archived, per this announcement. Viper has the blessed fork and published v1.6.0 release.
Proposal
Replace Go imports of github.com/mitchellh/mapstructure
with github.com/go-viper/mapstructure
. It should be a drop-in replacement.
go get github.com/go-viper/mapstructure@v1.6.0
go mod tidy
The github.com/mitchellh/mapstructure
dependency should no longer be a direct dependency in go.mod
.