Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bflad opened this issue Dec 20, 2023 · 0 comments
Open

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

bflad opened this issue Dec 20, 2023 · 0 comments
Labels
dependencies Pull requests that update a dependency file

Comments

@bflad
Copy link
Contributor

bflad commented Dec 20, 2023

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/[email protected]
go mod tidy

The github.com/mitchellh/mapstructure dependency should no longer be a direct dependency in go.mod.

References

@bflad bflad added the dependencies Pull requests that update a dependency file label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant