Skip to content

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

@bflad

Description

@bflad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions