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 - autoclosed #103

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 18, 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 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.

@renovate renovate bot added the dependency label Mar 18, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Mar 18, 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 github.com/sirupsen/logrus v1.9.2
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/stretchr/testify v1.8.0
go: downloading github.com/prometheus/client_golang v1.13.0
go: downloading golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8
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 github.com/beorn7/perks v1.0.1
go: downloading github.com/cespare/xxhash/v2 v2.1.2
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/prometheus/client_model v0.2.0
go: downloading github.com/prometheus/common v0.37.0
go: downloading github.com/prometheus/procfs v0.8.0
go: downloading google.golang.org/protobuf v1.28.1
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.1
go: downloading github.com/knadh/koanf v1.5.0
go: downloading github.com/knadh/koanf/providers/env v0.1.0
go: downloading github.com/knadh/koanf/providers/posflag v0.1.0
go: downloading github.com/stretchr/testify v1.8.1
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/ccremer/fronius-exporter/cfg imports
	github.com/knadh/koanf/providers/env: ambiguous import: found package github.com/knadh/koanf/providers/env in multiple modules:
	github.com/knadh/koanf v1.5.0 (/go/pkg/mod/github.com/knadh/[email protected]/providers/env)
	github.com/knadh/koanf/providers/env v0.1.0 (/go/pkg/mod/github.com/knadh/koanf/providers/[email protected])
go: github.com/ccremer/fronius-exporter/cfg 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 from 518e126 to 337653c Compare April 17, 2023 11:03
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 4 times, most recently from 5a90d5f to 92e1d57 Compare May 30, 2023 06:43
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 2 times, most recently from eb8c041 to 27695c1 Compare October 18, 2023 11:46
@renovate renovate bot changed the title Update module github.com/knadh/koanf to v2 Update module github.com/knadh/koanf to v2 - autoclosed Oct 23, 2023
@renovate renovate bot closed this Oct 23, 2023
@renovate renovate bot deleted the renovate/github.com-knadh-koanf-2.x branch October 23, 2023 09:43
@renovate renovate bot changed the title Update module github.com/knadh/koanf to v2 - autoclosed Update module github.com/knadh/koanf to v2 Oct 23, 2023
@renovate renovate bot reopened this Oct 23, 2023
@renovate renovate bot restored the renovate/github.com-knadh-koanf-2.x branch October 23, 2023 14:05
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 2 times, most recently from d754f0e to 9afc47e Compare February 6, 2024 12:54
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch from 9afc47e to 355f4d0 Compare April 3, 2024 10:23
Copy link
Contributor Author

renovate bot commented Sep 6, 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: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/knadh/koanf/providers/env v0.1.0
go: downloading github.com/knadh/koanf/providers/posflag v0.1.0
go: downloading github.com/stretchr/testify v1.8.1
go: github.com/ccremer/fronius-exporter/cfg imports
	github.com/knadh/koanf/providers/env: ambiguous import: found package github.com/knadh/koanf/providers/env in multiple modules:
	github.com/knadh/koanf v1.5.0 (/tmp/renovate/cache/others/go/pkg/mod/github.com/knadh/[email protected]/providers/env)
	github.com/knadh/koanf/providers/env v0.1.0 (/tmp/renovate/cache/others/go/pkg/mod/github.com/knadh/koanf/providers/[email protected])
go: github.com/ccremer/fronius-exporter/cfg 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 (/tmp/renovate/cache/others/go/pkg/mod/github.com/knadh/[email protected]/providers/posflag)
	github.com/knadh/koanf/providers/posflag v0.1.0 (/tmp/renovate/cache/others/go/pkg/mod/github.com/knadh/koanf/providers/[email protected])

@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch 5 times, most recently from fd426bb to 6e68d29 Compare September 6, 2024 06:55
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@renovate renovate bot force-pushed the renovate/github.com-knadh-koanf-2.x branch from 6e68d29 to 19a2a06 Compare September 18, 2024 20:36
@renovate renovate bot changed the title Update module github.com/knadh/koanf to v2 Update module github.com/knadh/koanf to v2 - autoclosed Sep 18, 2024
@renovate renovate bot closed this Sep 18, 2024
@renovate renovate bot deleted the renovate/github.com-knadh-koanf-2.x branch September 18, 2024 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants