vektor icon indicating copy to clipboard operation
vektor copied to clipboard

Update module github.com/sethvargo/go-envconfig to v0.8.2

Open renovate[bot] opened this issue 3 years ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Type Update Change
github.com/sethvargo/go-envconfig require minor v0.7.0 -> v0.8.2

Release Notes

sethvargo/go-envconfig

v0.8.2

Compare Source

What's Changed

Full Changelog: https://github.com/sethvargo/go-envconfig/compare/v0.8.1...v0.8.2

v0.8.1

Compare Source

What's Changed

Full Changelog: https://github.com/sethvargo/go-envconfig/compare/v0.8.0...v0.8.1

v0.8.0

Compare Source

What's Changed

The previous implementation of overwrite would always overwrite values in the given struct, even if values existed. While this is the definition of overwrite, it unintentionally extended to default values as well. So even if a value was explicitly set on a struct, it would be overwritten with the "default" value set in envconfig. This was an unexpected behavior, since defaults should take the lowest precedence.

The new implementation has the following behavior with overwrite:

  • If the struct field has the zero value and a default is set:

    • If no environment variable is specified, the struct field will be populated with the default value.

    • If an environment variable is specified, the struct field will be populate with the environment variable value.

  • If the struct field has a non-zero value and a default is set:

    • If no environment variable is specified, the struct field's existing value will be used (the default is ignored).

    • If an environment variable is specified, the struct field's existing value will be overwritten with the environment variable value.

As part of this change, decoder interfaces are only processed when an environment (or a default) is present.

Full Changelog: https://github.com/sethvargo/go-envconfig/compare/v0.7.0...v0.8.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, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Jul 14 '22 03:07 renovate[bot]