Skip to content

Commit 9f9bb1b

Browse files
authored
fix(deps): Update module github.com/spf13/cobra to v1.10.1 (#2295)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/spf13/cobra](https://redirect.github.com/spf13/cobra) | require | minor | `v1.9.1` -> `v1.10.1` | --- ### Release Notes <details> <summary>spf13/cobra (github.com/spf13/cobra)</summary> ### [`v1.10.1`](https://redirect.github.com/spf13/cobra/releases/tag/v1.10.1) [Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.10.0...v1.10.1) ##### 🐛 Fix - chore: upgrade pflags v1.0.9 by [@&#8203;jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2305](https://redirect.github.com/spf13/cobra/pull/2305) v1.0.9 of pflags brought back `ParseErrorsWhitelist` and marked it as deprecated **Full Changelog**: spf13/cobra@v1.10.0...v1.10.1 ### [`v1.10.0`](https://redirect.github.com/spf13/cobra/releases/tag/v1.10.0) [Compare Source](https://redirect.github.com/spf13/cobra/compare/v1.9.1...v1.10.0) #### What's Changed ##### 🚨 Attention! - Bump pflag to 1.0.8 by [@&#8203;tomasaschan](https://redirect.github.com/tomasaschan) in [https://github.com/spf13/cobra/pull/2303](https://redirect.github.com/spf13/cobra/pull/2303) This version of `pflag` carried a breaking change: it renamed `ParseErrorsWhitelist` to `ParseErrorsAllowlist` which can break builds if both `pflag` and `cobra` are dependencies in your project. - If you use both ` pflag and `cobra` , upgrade `pflag`to 1.0.8 and`cobra`to`1.10.0\` - ***or*** use the newer, fixed version of `pflag` v1.0.9 which keeps the deprecated `ParseErrorsWhitelist` More details can be found here: [https://github.com/spf13/cobra/pull/2303#issuecomment-3242333515](https://redirect.github.com/spf13/cobra/pull/2303#issuecomment-3242333515) ##### ✨ Features - Flow context to command in SetHelpFunc by [@&#8203;Frassle](https://redirect.github.com/Frassle) in [https://github.com/spf13/cobra/pull/2241](https://redirect.github.com/spf13/cobra/pull/2241) - The default ShellCompDirective can be customized for a command and its subcommands by [@&#8203;albers](https://redirect.github.com/albers) in [https://github.com/spf13/cobra/pull/2238](https://redirect.github.com/spf13/cobra/pull/2238) ##### 🐛 Fix - Upgrade golangci-lint to v2, address findings by [@&#8203;scop](https://redirect.github.com/scop) in [https://github.com/spf13/cobra/pull/2279](https://redirect.github.com/spf13/cobra/pull/2279) ##### 🪠 Testing - Test with Go 1.24 by [@&#8203;harryzcy](https://redirect.github.com/harryzcy) in [https://github.com/spf13/cobra/pull/2236](https://redirect.github.com/spf13/cobra/pull/2236) - chore: Rm GitHub Action PR size labeler by [@&#8203;jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2256](https://redirect.github.com/spf13/cobra/pull/2256) ##### 📝 Docs - Remove traling curlybrace by [@&#8203;yedayak](https://redirect.github.com/yedayak) in [https://github.com/spf13/cobra/pull/2237](https://redirect.github.com/spf13/cobra/pull/2237) - Update command.go by [@&#8203;styee](https://redirect.github.com/styee) in [https://github.com/spf13/cobra/pull/2248](https://redirect.github.com/spf13/cobra/pull/2248) - feat: Add security policy by [@&#8203;jpmcb](https://redirect.github.com/jpmcb) in [https://github.com/spf13/cobra/pull/2253](https://redirect.github.com/spf13/cobra/pull/2253) - Update Readme (Warp) by [@&#8203;ericdachen](https://redirect.github.com/ericdachen) in [https://github.com/spf13/cobra/pull/2267](https://redirect.github.com/spf13/cobra/pull/2267) - Add Periscope to the list of projects using Cobra by [@&#8203;anishathalye](https://redirect.github.com/anishathalye) in [https://github.com/spf13/cobra/pull/2299](https://redirect.github.com/spf13/cobra/pull/2299) #### New Contributors - [@&#8203;harryzcy](https://redirect.github.com/harryzcy) made their first contribution in [https://github.com/spf13/cobra/pull/2236](https://redirect.github.com/spf13/cobra/pull/2236) - [@&#8203;yedayak](https://redirect.github.com/yedayak) made their first contribution in [https://github.com/spf13/cobra/pull/2237](https://redirect.github.com/spf13/cobra/pull/2237) - [@&#8203;Frassle](https://redirect.github.com/Frassle) made their first contribution in [https://github.com/spf13/cobra/pull/2241](https://redirect.github.com/spf13/cobra/pull/2241) - [@&#8203;styee](https://redirect.github.com/styee) made their first contribution in [https://github.com/spf13/cobra/pull/2248](https://redirect.github.com/spf13/cobra/pull/2248) - [@&#8203;ericdachen](https://redirect.github.com/ericdachen) made their first contribution in [https://github.com/spf13/cobra/pull/2267](https://redirect.github.com/spf13/cobra/pull/2267) - [@&#8203;albers](https://redirect.github.com/albers) made their first contribution in [https://github.com/spf13/cobra/pull/2238](https://redirect.github.com/spf13/cobra/pull/2238) - [@&#8203;anishathalye](https://redirect.github.com/anishathalye) made their first contribution in [https://github.com/spf13/cobra/pull/2299](https://redirect.github.com/spf13/cobra/pull/2299) - [@&#8203;tomasaschan](https://redirect.github.com/tomasaschan) made their first contribution in [https://github.com/spf13/cobra/pull/2303](https://redirect.github.com/spf13/cobra/pull/2303) **Full Changelog**: spf13/cobra@v1.9.1...v1.9.2 </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, on day 1 of the month ( * 0-3 1 * * ) (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 [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4yMi4xIiwidXBkYXRlZEluVmVyIjoiNDAuMjIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYXV0b21lcmdlIl19-->
1 parent c07ee17 commit 9f9bb1b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

examples/simple_plugin/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ require (
5757
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5858
github.com/samber/lo v1.51.0 // indirect
5959
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 // indirect
60-
github.com/spf13/cobra v1.9.1 // indirect
61-
github.com/spf13/pflag v1.0.6 // indirect
60+
github.com/spf13/cobra v1.10.1 // indirect
61+
github.com/spf13/pflag v1.0.9 // indirect
6262
github.com/stretchr/testify v1.11.1 // indirect
6363
github.com/thoas/go-funk v0.9.3 // indirect
6464
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect

examples/simple_plugin/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,10 @@ github.com/samber/lo v1.51.0 h1:kysRYLbHy/MB7kQZf5DSN50JHmMsNEdeY24VzJFu7wI=
145145
github.com/samber/lo v1.51.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
146146
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
147147
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
148-
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
149-
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
150-
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
151-
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
148+
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
149+
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
150+
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
151+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
152152
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=
153153
github.com/stoewer/go-strcase v1.3.1 h1:iS0MdW+kVTxgMoE1LAZyMiYJFKlOzLooE4MxjirtkAs=
154154
github.com/stoewer/go-strcase v1.3.1/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo=

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ require (
2424
github.com/rs/zerolog v1.34.0
2525
github.com/samber/lo v1.51.0
2626
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2
27-
github.com/spf13/cobra v1.9.1
27+
github.com/spf13/cobra v1.10.1
2828
github.com/stretchr/testify v1.11.1
2929
github.com/thoas/go-funk v0.9.3
3030
go.opentelemetry.io/otel v1.37.0
@@ -80,7 +80,7 @@ require (
8080
github.com/oapi-codegen/runtime v1.1.2 // indirect
8181
github.com/pierrec/lz4/v4 v4.1.22 // indirect
8282
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
83-
github.com/spf13/pflag v1.0.6 // indirect
83+
github.com/spf13/pflag v1.0.9 // indirect
8484
github.com/stoewer/go-strcase v1.3.1 // indirect
8585
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
8686
github.com/zeebo/xxh3 v1.0.2 // indirect

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ github.com/samber/lo v1.51.0 h1:kysRYLbHy/MB7kQZf5DSN50JHmMsNEdeY24VzJFu7wI=
148148
github.com/samber/lo v1.51.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0=
149149
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ=
150150
github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU=
151-
github.com/spf13/cobra v1.9.1 h1:CXSaggrXdbHK9CF+8ywj8Amf7PBRmPCOJugH954Nnlo=
152-
github.com/spf13/cobra v1.9.1/go.mod h1:nDyEzZ8ogv936Cinf6g1RU9MRY64Ir93oCnqb9wxYW0=
153-
github.com/spf13/pflag v1.0.6 h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=
154-
github.com/spf13/pflag v1.0.6/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
151+
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
152+
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
153+
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
154+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
155155
github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0=
156156
github.com/stoewer/go-strcase v1.3.1 h1:iS0MdW+kVTxgMoE1LAZyMiYJFKlOzLooE4MxjirtkAs=
157157
github.com/stoewer/go-strcase v1.3.1/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo=

0 commit comments

Comments
 (0)