Skip to content

Commit

Permalink
fix(deps): update module github.com/spf13/viper to v1.17.0 (open-tele…
Browse files Browse the repository at this point in the history
…metry#29484)

[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/viper](https://togithub.com/spf13/viper) | require |
minor | `v1.16.0` -> `v1.17.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>spf13/viper (github.com/spf13/viper)</summary>

### [`v1.17.0`](https://togithub.com/spf13/viper/releases/tag/v1.17.0)

[Compare
Source](https://togithub.com/spf13/viper/compare/v1.16.0...v1.17.0)

#### Major changes

Highlighting some of the changes for better visibility.

Please share your feedback in the Discussion forum. Thanks! ❤️

##### Minimum Go version: 1.19

Viper now requires Go 1.19

This change ensures we can stay up to date with modern practices and
dependencies.

##### `log/slog` support **\[BREAKING]**

Viper [v1.11.0](https://togithub.com/spf13/viper/releases/tag/v1.11.0)
added an experimental `Logger` interface to allow custom implementations
(besides
[jwalterweatherman](https://togithub.com/spf13/jwalterweatherman)).

In addition, it also exposed an experimental `WithLogger` function
allowing to set a custom logger.

This release deprecates that interface in favor of
[log/slog](https://pkg.go.dev/log/slog) released in Go 1.21.

> \[!WARNING]
> `WithLogger` accepts an
[\*slog.Logger](https://pkg.go.dev/log/slog#Logger) from now on.

To preserve backwards compatibility with older Go versions, prior to Go
1.21 Viper accepts a
[\*golang.org/x/exp/slog.Logger](https://pkg.go.dev/golang.org/x/exp/slog#Logger).

The experimental flag is removed.

##### New finder implementation **\[BREAKING]**

As of this release, Viper uses a new library to look for files, called
[locafero](https://togithub.com/sagikazarmark/locafero).

The new library is better covered by tests and has been built from
scratch as a general purpose file finder library.

The implementation is experimental and is hidden behind a `finder` build
tag.

> \[!WARNING]
> The `io/fs` based implementation (that used to be hidden behind a
`finder` build tag) has been removed.

#### What's Changed

##### Exciting New Features 🎉

- Add NATS support by [@&open-telemetry#8203;hooksie1](https://togithub.com/hooksie1)
in
[https://github.com/spf13/viper/pull/1590](https://togithub.com/spf13/viper/pull/1590)
- Add slog support by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1627](https://togithub.com/spf13/viper/pull/1627)

##### Enhancements 🚀

- chore: add local development environment using nix by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1572](https://togithub.com/spf13/viper/pull/1572)
- feat: add func GetEnvPrefix by
[@&open-telemetry#8203;baruchiro](https://togithub.com/baruchiro) in
[https://github.com/spf13/viper/pull/1565](https://togithub.com/spf13/viper/pull/1565)
- Improve dev env by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1575](https://togithub.com/spf13/viper/pull/1575)
- fix: code optimization by
[@&open-telemetry#8203;testwill](https://togithub.com/testwill) in
[https://github.com/spf13/viper/pull/1557](https://togithub.com/spf13/viper/pull/1557)
- test: remove not needed testutil.Setenv by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1610](https://togithub.com/spf13/viper/pull/1610)
- new finder library based on afero by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1625](https://togithub.com/spf13/viper/pull/1625)
- refactor: make use of `strings.Cut` by
[@&open-telemetry#8203;scop](https://togithub.com/scop) in
[https://github.com/spf13/viper/pull/1650](https://togithub.com/spf13/viper/pull/1650)

##### Breaking Changes 🛠

- feat: drop support for Go 1.17 by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1574](https://togithub.com/spf13/viper/pull/1574)

##### Dependency Updates ⬆️

- build(deps): bump mheap/github-action-required-labels from 4 to 5 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1563](https://togithub.com/spf13/viper/pull/1563)
- build(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1558](https://togithub.com/spf13/viper/pull/1558)
- build(deps): bump cachix/install-nix-action from 21 to 22 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1573](https://togithub.com/spf13/viper/pull/1573)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1586](https://togithub.com/spf13/viper/pull/1586)
- chore: upgrade crypt by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1589](https://togithub.com/spf13/viper/pull/1589)
- build(deps): bump actions/checkout from 3.5.3 to 4.0.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1616](https://togithub.com/spf13/viper/pull/1616)
- build(deps): bump github/codeql-action from 2.21.2 to 2.21.5 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1615](https://togithub.com/spf13/viper/pull/1615)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.9 to 2.1.0
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1614](https://togithub.com/spf13/viper/pull/1614)
- build(deps): bump actions/dependency-review-action from 3.0.6 to 3.0.8
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1605](https://togithub.com/spf13/viper/pull/1605)
- build(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1604](https://togithub.com/spf13/viper/pull/1604)
- build(deps): bump actions/setup-go from 4.0.1 to 4.1.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1593](https://togithub.com/spf13/viper/pull/1593)
- build(deps): bump github.com/subosito/gotenv from 1.4.2 to 1.6.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1603](https://togithub.com/spf13/viper/pull/1603)
- build(deps): bump cachix/install-nix-action from 22 to 23 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1620](https://togithub.com/spf13/viper/pull/1620)
- chore(deps): update crypt by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1621](https://togithub.com/spf13/viper/pull/1621)
- build(deps): bump actions/dependency-review-action from 3.0.8 to 3.1.0
by [@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1623](https://togithub.com/spf13/viper/pull/1623)
- Bump minimum Go version to 1.19 by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1626](https://togithub.com/spf13/viper/pull/1626)
- build(deps): bump github/codeql-action from 2.21.5 to 2.21.6 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1632](https://togithub.com/spf13/viper/pull/1632)
- build(deps): bump github/codeql-action from 2.21.6 to 2.21.7 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1634](https://togithub.com/spf13/viper/pull/1634)
- build(deps): bump actions/checkout from 4.0.0 to 4.1.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1641](https://togithub.com/spf13/viper/pull/1641)
- build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1640](https://togithub.com/spf13/viper/pull/1640)
- build(deps): bump github/codeql-action from 2.21.7 to 2.21.8 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1638](https://togithub.com/spf13/viper/pull/1638)
- build(deps): bump github/codeql-action from 2.21.8 to 2.21.9 by
[@&open-telemetry#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/spf13/viper/pull/1648](https://togithub.com/spf13/viper/pull/1648)
- chore(deps): update crypt by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1652](https://togithub.com/spf13/viper/pull/1652)

##### Other Changes

- \[StepSecurity] ci: Harden GitHub Actions by
[@&open-telemetry#8203;step-security-bot](https://togithub.com/step-security-bot) in
[https://github.com/spf13/viper/pull/1592](https://togithub.com/spf13/viper/pull/1592)
- Add Vitess to list of projects using Viper by
[@&open-telemetry#8203;systay](https://togithub.com/systay) in
[https://github.com/spf13/viper/pull/1619](https://togithub.com/spf13/viper/pull/1619)
- docs: fix typos in comments by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1609](https://togithub.com/spf13/viper/pull/1609)
- ci: add Go 1.21 to the test matrix by
[@&open-telemetry#8203;sagikazarmark](https://togithub.com/sagikazarmark) in
[https://github.com/spf13/viper/pull/1622](https://togithub.com/spf13/viper/pull/1622)
- Remove usages of deprecated io/ioutil; simplify viper tests by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1631](https://togithub.com/spf13/viper/pull/1631)
- chore: remove deprecated build tags by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1630](https://togithub.com/spf13/viper/pull/1630)
- refactor: replace 'interface{}' with 'any' by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1646](https://togithub.com/spf13/viper/pull/1646)
- test: refactor asserts by
[@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) in
[https://github.com/spf13/viper/pull/1644](https://togithub.com/spf13/viper/pull/1644)
- docs: add set subset KV example by
[@&open-telemetry#8203;yhliyr](https://togithub.com/yhliyr) in
[https://github.com/spf13/viper/pull/1647](https://togithub.com/spf13/viper/pull/1647)
- Make deps fixes by [@&open-telemetry#8203;bersace](https://togithub.com/bersace) in
[https://github.com/spf13/viper/pull/1628](https://togithub.com/spf13/viper/pull/1628)

#### New Contributors

- [@&open-telemetry#8203;goldeneggg](https://togithub.com/goldeneggg) made their first
contribution in
[https://github.com/spf13/viper/pull/1561](https://togithub.com/spf13/viper/pull/1561)
- [@&open-telemetry#8203;baruchiro](https://togithub.com/baruchiro) made their first
contribution in
[https://github.com/spf13/viper/pull/1565](https://togithub.com/spf13/viper/pull/1565)
- [@&open-telemetry#8203;testwill](https://togithub.com/testwill) made their first
contribution in
[https://github.com/spf13/viper/pull/1557](https://togithub.com/spf13/viper/pull/1557)
- [@&open-telemetry#8203;step-security-bot](https://togithub.com/step-security-bot)
made their first contribution in
[https://github.com/spf13/viper/pull/1592](https://togithub.com/spf13/viper/pull/1592)
- [@&open-telemetry#8203;systay](https://togithub.com/systay) made their first
contribution in
[https://github.com/spf13/viper/pull/1619](https://togithub.com/spf13/viper/pull/1619)
- [@&open-telemetry#8203;alexandear](https://togithub.com/alexandear) made their first
contribution in
[https://github.com/spf13/viper/pull/1609](https://togithub.com/spf13/viper/pull/1609)
- [@&open-telemetry#8203;hooksie1](https://togithub.com/hooksie1) made their first
contribution in
[https://github.com/spf13/viper/pull/1590](https://togithub.com/spf13/viper/pull/1590)
- [@&open-telemetry#8203;yhliyr](https://togithub.com/yhliyr) made their first
contribution in
[https://github.com/spf13/viper/pull/1647](https://togithub.com/spf13/viper/pull/1647)
- [@&open-telemetry#8203;bersace](https://togithub.com/bersace) made their first
contribution in
[https://github.com/spf13/viper/pull/1628](https://togithub.com/spf13/viper/pull/1628)
- [@&open-telemetry#8203;scop](https://togithub.com/scop) made their first
contribution in
[https://github.com/spf13/viper/pull/1650](https://togithub.com/spf13/viper/pull/1650)

**Full Changelog**:
spf13/viper@v1.16.0...v1.17.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), 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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <[email protected]>
  • Loading branch information
2 people authored and RoryCrispin committed Nov 24, 2023
1 parent 1d88690 commit 378ed9a
Show file tree
Hide file tree
Showing 8 changed files with 77 additions and 48 deletions.
6 changes: 4 additions & 2 deletions cmd/configschema/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ require (
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/relvacode/iso8601 v1.3.0 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/sagikazarmark/locafero v0.3.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21 // indirect
github.com/scalyr/dataset-go v0.14.0 // indirect
github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646 // indirect
Expand All @@ -580,13 +582,13 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/snowflakedb/gosnowflake v1.7.0 // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.16.0 // indirect
github.com/spf13/viper v1.17.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
Expand Down
11 changes: 8 additions & 3 deletions cmd/configschema/go.sum

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

12 changes: 7 additions & 5 deletions cmd/otelcontribcol/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ require (
github.com/ovh/go-ovh v1.4.3 // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/paulmach/orb v0.10.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/philhofer/fwd v1.1.2 // indirect
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
github.com/pierrec/lz4/v4 v4.1.18 // indirect
Expand All @@ -584,6 +584,8 @@ require (
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect
github.com/relvacode/iso8601 v1.3.0 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/sagikazarmark/locafero v0.3.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/samber/lo v1.38.1 // indirect
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.21 // indirect
github.com/scalyr/dataset-go v0.14.0 // indirect
Expand All @@ -599,15 +601,15 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/snowflakedb/gosnowflake v1.7.0 // indirect
github.com/soheilhy/cmux v0.1.5 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spaolacci/murmur3 v1.1.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.16.0 // indirect
github.com/spf13/viper v1.17.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 // indirect
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.792 // indirect
github.com/tg123/go-htpasswd v1.2.1 // indirect
Expand Down
24 changes: 14 additions & 10 deletions cmd/otelcontribcol/go.sum

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

17 changes: 10 additions & 7 deletions extension/jaegerremotesampling/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/fortytw2/leaktest v1.3.0
github.com/jaegertracing/jaeger v1.48.0
github.com/spf13/viper v1.16.0
github.com/spf13/viper v1.17.0
github.com/stretchr/testify v1.8.4
github.com/tilinna/clock v1.1.0
go.opentelemetry.io/collector/component v0.89.0
Expand All @@ -23,7 +23,7 @@ require (

require (
github.com/apache/thrift v0.19.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
Expand All @@ -44,14 +44,16 @@ require (
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/mostynb/go-grpc-compression v1.2.2 // indirect
github.com/opentracing/opentracing-go v1.2.0 // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rs/cors v1.10.1 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/sagikazarmark/locafero v0.3.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.10.0 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
go.opentelemetry.io/collector v0.89.0 // indirect
Expand All @@ -68,6 +70,7 @@ require (
go.opentelemetry.io/otel/trace v1.20.0 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/net v0.18.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/text v0.14.0 // indirect
Expand Down
Loading

0 comments on commit 378ed9a

Please sign in to comment.