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

fix(deps): update module github.com/knadh/koanf/parsers/toml to v2 #215

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 26, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/knadh/koanf/parsers/toml v0.1.0 -> v2.1.0 age adoption passing confidence

Release Notes

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

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.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 becomes conflicted, 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.

Copy link
Contributor Author

renovate bot commented Dec 26, 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: cmd/go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: errors parsing go.mod:
go.mod:12:2: require github.com/knadh/koanf/parsers/toml: version "v2.1.0" invalid: should be v0 or v1, not v2

@renovate renovate bot force-pushed the dependency/github.com-knadh-koanf-parsers-toml-2.x branch from e66dcf9 to d92a711 Compare December 26, 2024 12:42
@renovate renovate bot force-pushed the dependency/github.com-knadh-koanf-parsers-toml-2.x branch from d92a711 to c51d98a Compare December 26, 2024 12:46
@renovate renovate bot force-pushed the dependency/github.com-knadh-koanf-parsers-toml-2.x branch from c51d98a to cb4fea1 Compare December 26, 2024 12:56
@renovate renovate bot force-pushed the dependency/github.com-knadh-koanf-parsers-toml-2.x branch from cb4fea1 to 1326cec Compare December 26, 2024 13:26
@siyul-park siyul-park force-pushed the main branch 20 times, most recently from 5a075be to 080f7f9 Compare December 28, 2024 10:49
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.

0 participants