Bump github.com/spf13/viper from 1.17.0 to 1.18.2
Bumps github.com/spf13/viper from 1.17.0 to 1.18.2.
Release notes
Sourced from github.com/spf13/viper's releases.
v1.18.2
tl;dr Skip 1.18.0 and 1.18.1 and upgrade to this version instead.
This release fixes a regression that appears in rare circumstances when using
UnmarshalorUnmarshalExactto decode values onto pointers with multiple indirection (eg. pointer to a pointer, etc). The change was introduced in 1.18.0 as a means to resolve a long-standing bug when decoding environment variables to structs.The feature is now disabled by default and can be enabled using the
viper_bind_structbuild tag. It's also considered experimental at this point, so breaking changes may be introduced in the future.What's Changed
Bug Fixes 🐛
- feat!: hide struct binding behind a feature flag by
@sagikazarmarkin spf13/viper#1715Full Changelog: https://github.com/spf13/viper/compare/v1.18.1...v1.18.2
v1.18.1
What's Changed
Bug Fixes 🐛
- Merge missing struct keys inside UnmarshalExact by
@krakowskiin spf13/viper#1704Full Changelog: https://github.com/spf13/viper/compare/v1.18.0...v1.18.1
v1.18.0
Major changes
Highlighting some of the changes for better visibility.
Please share your feedback in the Discussion forum. Thanks! ❤️
AutomaticEnvworks withUnmarshalPreviously, environment variables that weren't bound manually or had no defaults could not be mapped by
Unmarshal. (The problem is explained in details in this issue: #761)#1429 introduced a solution that solves that issue.
What's Changed
Enhancements 🚀
- chore: rename files according to enabled build tags by
@alexandearin spf13/viper#1642- test: replace ifs with asserts to simplify tests by
@alexandearin spf13/viper#1656- ci: enable test shuffle and fix tests by
@alexandearin spf13/viper#1643- fix: gocritic lint issues by
@alexandearin spf13/viper#1696Bug Fixes 🐛
- Implement viper.BindStruct for automatic unmarshalling from environment variables by
@krakowskiin spf13/viper#1429- fix isPathShadowedInFlatMap type cast bug by
@linuxsongin spf13/viper#1585Dependency Updates ⬆️
- build(deps): bump github/codeql-action from 2.21.9 to 2.22.3 by
@dependabotin spf13/viper#1661- build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 by
@dependabotin spf13/viper#1659
... (truncated)
Commits
ab3a50cfix!: hide struct binding behind a feature flag9154b90build(deps): bump actions/setup-go from 4.1.0 to 5.0.008e4a00build(deps): bump github/codeql-action from 2.22.8 to 2.22.9fb6eb1efix: merge missing struct keys inside UnmarshalExactf5fcb4achore: update cryptf736363fix isPathShadowedInFlatMap type cast bug (#1585)36a3868Review changesf0c4ccdfix: gocritic lint issues3a23b80ci: enable test shuffle; fix tests73dfb94feat: make Unmarshal work with AutomaticEnv- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)