hashicorp / terraform-plugin-sdk

Terraform Plugin SDK enables building plugins (providers) to manage any service providers or custom in-house solutions

Home Page:https://developer.hashicorp.com/terraform/plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider Migrating from mitchellh/mapstructure to go-viper/mapstructure

bflad opened this issue · comments

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.

References