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

Update module github.com/knadh/koanf to v2 #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 27, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/knadh/koanf v1.5.0 -> v2.1.1 age adoption passing confidence

Release Notes

knadh/koanf (github.com/knadh/koanf)

v2.1.1

Compare Source

What's Changed

New Contributors

Full Changelog: knadh/koanf@v2.1.0...v2.1.1

v2.1.0

Compare Source

Important

https://github.com/mitchellh/mapstructure/issues/349#issuecomment-1860372162 is discontinued and koanf has switched to using the fork github.com/go-viper/mapstructure/v2.

If you are referencing the mapstructure lib in your code (custom DecoderConfig), you have to switch the paths to the above forked version of mapstructure lib.

github.com/mitchellh/mapstructure -> github.com/go-viper/mapstructure/v2

What's Changed

Full Changelog: knadh/koanf@v2.0.2...v2.1.0

v2.0.2

Compare Source

Important

https://github.com/mitchellh/mapstructure/issues/349#issuecomment-1860372162 is discontinued and koanf has switched to using the fork github.com/go-viper/mapstructure/v2.

If you are referencing the mapstructure lib in your code (custom DecoderConfig), you have to switch the paths to the above forked version of koanf.

github.com/mitchellh/mapstructure => github.com/go-viper/mapstructure/v2

What's Changed

New Contributors

Full Changelog: knadh/koanf@v2.0.1...v2.0.2

v2.0.1

Compare Source

What's Changed

New Contributors

Full Changelog: knadh/koanf@v2.0.0...v2.0.1

v2.0.0

Compare Source

This is a major breaking change that ends koanf v1 (v1.5.0) and moves to v2. Continued usage of v1 is unaffected. While koanf does not bundle external dependencies into its core thereby avoiding them in the build, a go get would still pull them and go.mod, bringing in unnecessary references as all the providers and parsers were "sub" packages of the main module.

This PR upgrades koanf to v2 and separates every single provider and parser package into its own module, go.mod, and release tag (eg: providers/yaml/v0.1.0). That is, one-repository, many modules. This removes references to all indirect dependencies in the main koanf package significantly de-cluttering it.

What changes?
  • Going forward, koanf references should change to github.com/knadh/koanf/v2.
  • The required parsers and providers should be installed explicitly as they do not come bundled with the main koanf package anymore. Eg: go get github.com/knadh/koanf/providers/s3, go get github.com/knadh/koanf/parsers/json etc.
  • That's all. There is no change in functionality.

Full Changelog: knadh/koanf@v1.5.0...v2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependency Depedency update label Oct 27, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Oct 27, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: downloading k8s.io/apimachinery v0.24.2
go: downloading sigs.k8s.io/controller-runtime v0.12.2
go: downloading github.com/go-logr/logr v1.3.0
go: downloading k8s.io/api v0.24.2
go: downloading github.com/go-logr/zapr v1.2.4
go: downloading github.com/stretchr/testify v1.8.4
go: downloading go.uber.org/zap v1.24.0
go: downloading k8s.io/client-go v0.24.2
go: downloading github.com/spf13/pflag v1.0.5
go: downloading sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20220628190934-17893a8fae1e
go: downloading sigs.k8s.io/controller-tools v0.5.0
go: downloading sigs.k8s.io/kind v0.20.0
go: downloading sigs.k8s.io/kustomize/kustomize/v3 v3.10.0
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/google/gofuzz v1.1.0
go: downloading k8s.io/klog/v2 v2.60.1
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.2.1
go: downloading k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9
go: downloading github.com/evanphx/json-patch v4.12.0+incompatible
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading k8s.io/apiextensions-apiserver v0.24.2
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd
go: downloading go.uber.org/atomic v1.7.0
go: downloading go.uber.org/multierr v1.6.0
go: downloading golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8
go: downloading github.com/spf13/cobra v1.4.0
go: downloading github.com/spf13/afero v1.6.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2
go: downloading github.com/json-iterator/go v1.1.12
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/prometheus/client_golang v1.12.1
go: downloading github.com/pkg/errors v0.9.1
go: downloading k8s.io/kube-openapi v0.0.0-20220328201542-3ee0da9b0b42
go: downloading golang.org/x/time v0.0.0-20220210224613-90d013bbcef8
go: downloading github.com/benbjohnson/clock v1.1.0
go: downloading golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
go: downloading cloud.google.com/go v0.81.0
go: downloading google.golang.org/appengine v1.6.7
go: downloading github.com/inconshreveable/mousetrap v1.0.0
go: downloading github.com/gobuffalo/flect v0.2.5
go: downloading golang.org/x/tools v0.1.10-0.20220218145154-897bd77cd717
go: downloading github.com/fatih/color v1.12.0
go: downloading golang.org/x/text v0.3.7
go: downloading sigs.k8s.io/kustomize/api v0.8.0
go: downloading sigs.k8s.io/kustomize/cmd/config v0.9.1
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading gomodules.xyz/jsonpatch/v2 v2.2.0
go: downloading github.com/imdario/mergo v0.3.12
go: downloading k8s.io/component-base v0.24.2
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.32.1
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/google/gnostic v0.5.7-v3refs
go: downloading golang.org/x/sys v0.0.0-20220209214540-3681064d5158
go: downloading github.com/mattn/go-colorable v0.1.8
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1
go: downloading github.com/alessio/shellescape v1.4.1
go: downloading github.com/google/uuid v1.1.2
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/prometheus/procfs v0.7.3
go: downloading google.golang.org/protobuf v1.27.1
go: downloading github.com/fsnotify/fsnotify v1.5.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369
go: downloading golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
go: downloading sigs.k8s.io/kustomize/kyaml v0.10.9
go: downloading github.com/go-openapi/spec v0.19.5
go: downloading github.com/olekukonko/tablewriter v0.0.4
go: downloading github.com/go-errors/errors v1.0.1
go: downloading github.com/yujunz/go-getter v1.5.1-lite.0.20201201013212-6d9c071adddf
go: downloading github.com/google/go-cmp v0.5.7
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
go: downloading github.com/xlab/treeprint v0.0.0-20181112141820-a009c3971eca
go: downloading github.com/mattn/go-runewidth v0.0.7
go: downloading github.com/go-openapi/strfmt v0.19.5
go: downloading github.com/go-openapi/validate v0.19.8
go: downloading github.com/go-openapi/jsonpointer v0.19.5
go: downloading github.com/go-openapi/jsonreference v0.19.5
go: downloading github.com/go-openapi/swag v0.19.14
go: downloading github.com/hashicorp/go-multierror v1.1.0
go: downloading github.com/emicklei/go-restful v2.9.5+incompatible
go: downloading github.com/pelletier/go-toml v1.9.4
go: downloading github.com/qri-io/starlib v0.4.2-0.20200213133954-ff2e8cd5ef8d
go: downloading go.starlark.net v0.0.0-20200306205701-8dd3e2ee1dd5
go: downloading github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
go: downloading github.com/go-openapi/errors v0.19.2
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading go.mongodb.org/mongo-driver v1.1.2
go: downloading github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d
go: downloading github.com/hashicorp/go-cleanhttp v0.5.1
go: downloading github.com/hashicorp/go-safetemp v1.0.0
go: downloading github.com/hashicorp/go-version v1.1.0
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading github.com/mitchellh/go-testing-interface v1.0.0
go: downloading github.com/ulikunitz/xz v0.5.8
go: downloading github.com/PuerkitoBio/purell v1.1.1
go: downloading github.com/mailru/easyjson v0.7.6
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/hashicorp/errwrap v1.0.0
go: downloading github.com/BurntSushi/toml v1.0.0
go: downloading github.com/evanphx/json-patch/v5 v5.6.0
go: downloading github.com/go-openapi/analysis v0.19.5
go: downloading github.com/go-openapi/loads v0.19.4
go: downloading github.com/go-openapi/runtime v0.19.4
go: downloading github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578
go: downloading github.com/josharian/intern v1.0.0
go: downloading github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2
go: downloading github.com/go-stack/stack v1.8.0
go: downloading github.com/knadh/koanf v1.5.0
go: downloading github.com/knadh/koanf/providers/posflag v0.1.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: github.com/vshn/espejo imports
	github.com/knadh/koanf/providers/posflag: ambiguous import: found package github.com/knadh/koanf/providers/posflag in multiple modules:
	github.com/knadh/koanf v1.5.0 (/go/pkg/mod/github.com/knadh/[email protected]/providers/posflag)
	github.com/knadh/koanf/providers/posflag v0.1.0 (/go/pkg/mod/github.com/knadh/koanf/providers/[email protected])

@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 2 times, most recently from 5195305 to 6648b48 Compare February 6, 2024 10:47
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch from 6648b48 to f32c5e3 Compare April 3, 2024 10:01
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch from f32c5e3 to bd1f6cb Compare June 13, 2024 11:04
Copy link
Contributor Author

renovate bot commented Jun 13, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: downloading k8s.io/apimachinery v0.30.2
go: downloading sigs.k8s.io/controller-runtime v0.18.4
go: downloading github.com/go-logr/logr v1.4.2
go: downloading k8s.io/api v0.30.2
go: downloading github.com/go-logr/zapr v1.3.0
go: downloading github.com/stretchr/testify v1.9.0
go: downloading go.uber.org/zap v1.27.0
go: downloading k8s.io/client-go v0.30.2
go: downloading github.com/spf13/pflag v1.0.5
go: downloading sigs.k8s.io/controller-runtime/tools/setup-envtest v0.0.0-20240608161558-1f5b39fa59d1
go: downloading sigs.k8s.io/controller-tools v0.15.0
go: downloading sigs.k8s.io/kind v0.23.0
go: downloading sigs.k8s.io/kustomize/kustomize/v5 v5.4.2
go: downloading github.com/gogo/protobuf v1.3.2
go: downloading github.com/google/gofuzz v1.2.0
go: downloading k8s.io/klog/v2 v2.120.1
go: downloading sigs.k8s.io/structured-merge-diff/v4 v4.4.1
go: downloading k8s.io/utils v0.0.0-20240502163921-fe8a2dddb1d0
go: downloading github.com/evanphx/json-patch/v5 v5.9.0
go: downloading github.com/evanphx/json-patch v5.9.0+incompatible
go: downloading github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc
go: downloading github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading golang.org/x/net v0.26.0
go: downloading k8s.io/apiextensions-apiserver v0.30.2
go: downloading sigs.k8s.io/yaml v1.4.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading golang.org/x/exp v0.0.0-20240604190554-fc45aab8b7f8
go: downloading github.com/prometheus/client_golang v1.19.1
go: downloading github.com/spf13/afero v1.11.0
go: downloading github.com/spf13/cobra v1.8.0
go: downloading gopkg.in/inf.v0 v0.9.1
go: downloading sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd
go: downloading github.com/json-iterator/go v1.1.12
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/pkg/errors v0.9.1
go: downloading k8s.io/kube-openapi v0.0.0-20240521193020-835d969ad83a
go: downloading golang.org/x/term v0.21.0
go: downloading golang.org/x/oauth2 v0.21.0
go: downloading golang.org/x/time v0.5.0
go: downloading golang.org/x/sys v0.21.0
go: downloading github.com/google/go-cmp v0.6.0
go: downloading github.com/prometheus/client_model v0.6.1
go: downloading github.com/prometheus/common v0.54.0
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading golang.org/x/text v0.16.0
go: downloading github.com/gobuffalo/flect v1.0.2
go: downloading golang.org/x/tools v0.22.0
go: downloading github.com/fatih/color v1.17.0
go: downloading sigs.k8s.io/kustomize/api v0.17.2
go: downloading sigs.k8s.io/kustomize/cmd/config v0.14.1
go: downloading sigs.k8s.io/kustomize/kyaml v0.17.1
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading gomodules.xyz/jsonpatch/v2 v2.4.0
go: downloading github.com/imdario/mergo v0.3.16
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/google/gnostic-models v0.6.9-0.20230804172637-c7be7c783f49
go: downloading github.com/golang/protobuf v1.5.4
go: downloading github.com/go-openapi/jsonreference v0.21.0
go: downloading github.com/go-openapi/swag v0.23.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/procfs v0.15.1
go: downloading google.golang.org/protobuf v1.34.2
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading github.com/alessio/shellescape v1.4.2
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/go-openapi/jsonpointer v0.21.0
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading golang.org/x/sync v0.7.0
go: downloading github.com/go-errors/errors v1.5.1
go: downloading github.com/blang/semver/v4 v4.0.0
go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
go: downloading github.com/josharian/intern v1.0.0
go: downloading golang.org/x/mod v0.18.0
go: downloading github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
go: downloading github.com/xlab/treeprint v1.2.0
go: downloading gopkg.in/evanphx/json-patch.v4 v4.12.0
go: downloading github.com/emicklei/go-restful/v3 v3.12.1
go: downloading go.starlark.net v0.0.0-20240520160348-046347dcd104
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/pelletier/go-toml v1.9.5
go: downloading github.com/BurntSushi/toml v1.4.0
go: downloading github.com/google/safetext v0.0.0-20240104143208-7a7d9b3d812f
go: downloading github.com/pborman/uuid v1.2.1
go: downloading github.com/knadh/koanf v1.5.0
go: downloading github.com/knadh/koanf/providers/posflag v0.1.0
go: downloading github.com/mitchellh/copystructure v1.2.0
go: downloading github.com/mitchellh/mapstructure v1.5.0
go: downloading github.com/mitchellh/reflectwalk v1.0.2
go: github.com/vshn/espejo imports
	github.com/knadh/koanf/providers/posflag: ambiguous import: found package github.com/knadh/koanf/providers/posflag in multiple modules:
	github.com/knadh/koanf v1.5.0 (/go/pkg/mod/github.com/knadh/[email protected]/providers/posflag)
	github.com/knadh/koanf/providers/posflag v0.1.0 (/go/pkg/mod/github.com/knadh/koanf/providers/[email protected])

@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 3 times, most recently from 03f8a1d to e3b2ac8 Compare June 13, 2024 12:58
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch from e3b2ac8 to 16fc64d Compare June 13, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Depedency update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants