-
Notifications
You must be signed in to change notification settings - Fork 64
Migrate to github.com/go-viper/mapstructure/v2 #157
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
Conversation
The github.com/mitchellh/mapstructure package is archived and no longer receives updates[^1]. The "blessed" fork[^2] is github.com/go-viper/mapstructure. The API is the same, so nothing needs to be changed apart from the import path. [^1]: mitchellh/mapstructure#349 [^2]: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc Signed-off-by: Tobias Klauser <[email protected]>
Thanks. If I remember correctly we have this dependency in other repos for go-openapi and go-swagger. Have to check |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #157 +/- ##
=======================================
Coverage 82.87% 82.87%
=======================================
Files 13 13
Lines 2178 2178
=======================================
Hits 1805 1805
Misses 295 295
Partials 78 78
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The only other use I could find in these projects (according to https://pkg.go.dev/github.com/mitchellh/mapstructure?tab=importedby) was in github.com/go-swagger/go-swagger. Opened go-swagger/go-swagger#3186 to migrate the package there as well. |
Replace github.com/mitchellh/mapstructure with github.com/go-viper/mapstructure/v2. Rationale: Module github.com/mitchellh/mapstructure isn't supported anymore. Announcement: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc The blessed fork is at github.com/go-viper/mapstructure/v2. Note: github.com/mitchellh/mapstructure is still referenced in dependencies of go-openapi packages, but this is already being fixed (see go-openapi/strfmt#157 ) and will be released with the next github.com/go-openapi/strfmt. Signed-off-by: Olivier Mengué <[email protected]>
Replace github.com/mitchellh/mapstructure with github.com/go-viper/mapstructure/v2. Rationale: Module github.com/mitchellh/mapstructure isn't supported anymore. Announcement: https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc The blessed fork is at github.com/go-viper/mapstructure/v2. Note: github.com/mitchellh/mapstructure is still referenced in dependencies of go-openapi packages, but this is already being fixed (see go-openapi/strfmt#157 ) and will be released with the next github.com/go-openapi/strfmt. Signed-off-by: Olivier Mengué <[email protected]>
The github.com/mitchellh/mapstructure package is archived and no longer receives updates1. The "blessed" fork2 is
github.com/go-viper/mapstructure. The API is the same, so nothing needs to be changed apart from the import path.
Footnotes
https://github.com/mitchellh/mapstructure/issues/349 ↩
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc ↩