Skip to content

update mapstructure import path for viper 1.20.0+ compatibility#889

Open
PaPerseller wants to merge 1 commit intoIrineSistiana:mainfrom
PaPerseller:fix-viper-mapstructure-import
Open

update mapstructure import path for viper 1.20.0+ compatibility#889
PaPerseller wants to merge 1 commit intoIrineSistiana:mainfrom
PaPerseller:fix-viper-mapstructure-import

Conversation

@PaPerseller
Copy link
Copy Markdown

Upon upgrading the dependency github.com/spf13/viper to version 1.20.0 or later within the go.mod file, update mapstructure import path from github.com/mitchellh/mapstructure to github.com/go-viper/mapstructure/v2 to support Viper 1.20.0+ (see viper breaking changes
This change fixes compilation errors when using newer viper versions.

@PaPerseller PaPerseller changed the title update mapstructure import path to github.com/go-viper/mapstructure/v2 for viper 1.20.0+ compatibility update mapstructure import path for viper 1.20.0+ compatibility Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant