Skip to content

Commit

Permalink
Go: Bump github.com/sethvargo/go-envconfig from 0.9.0 to 1.0.0 (#7190)
Browse files Browse the repository at this point in the history
* Go: Bump github.com/sethvargo/go-envconfig from 0.9.0 to 1.0.0

Bumps [github.com/sethvargo/go-envconfig](https://github.com/sethvargo/go-envconfig) from 0.9.0 to 1.0.0.
- [Release notes](https://github.com/sethvargo/go-envconfig/releases)
- [Commits](sethvargo/go-envconfig@v0.9.0...v1.0.0)

---
updated-dependencies:
- dependency-name: github.com/sethvargo/go-envconfig
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix breaking change

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <[email protected]>
  • Loading branch information
dependabot[bot] and rm3l authored Jan 30, 2024
1 parent e19625a commit 74f295d
Show file tree
Hide file tree
Showing 7 changed files with 439 additions and 361 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ require (
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
github.com/securego/gosec/v2 v2.18.2
github.com/segmentio/backo-go v1.0.1
github.com/sethvargo/go-envconfig v0.9.0
github.com/sethvargo/go-envconfig v1.0.0
github.com/spf13/afero v1.11.0
github.com/spf13/cobra v1.8.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ func GetConfiguration() (*Configuration, error) {
// typically in unit tests.
func GetConfigurationWith(lookuper envconfig.Lookuper) (*Configuration, error) {
var s Configuration
err := envconfig.ProcessWith(context.Background(), &s, lookuper)
c := envconfig.Config{
Target: &s,
Lookuper: lookuper,
}
err := envconfig.ProcessWith(context.Background(), &c)
if err != nil {
return nil, err
}
Expand Down
Loading

0 comments on commit 74f295d

Please sign in to comment.