Skip to content

Commit aef51fb

Browse files
chore(deps): bump github.com/spf13/cobra from 1.8.1 to 1.10.1 (#568)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.1 to 1.10.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/spf13/cobra/releases">github.com/spf13/cobra's releases</a>.</em></p> <blockquote> <h2>v1.10.1</h2> <h3>🐛 Fix</h3> <ul> <li>chore: upgrade pflags v1.0.9 by <a href="https://github.com/jpmcb"><code>@​jpmcb</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2305">spf13/cobra#2305</a></li> </ul> <p>v1.0.9 of pflags brought back <code>ParseErrorsWhitelist</code> and marked it as deprecated</p> <p><strong>Full Changelog</strong>: <a href="https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1">https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1</a></p> <h2>v1.10.0</h2> <h2>What's Changed</h2> <h3>🚨 Attention!</h3> <ul> <li>Bump pflag to 1.0.8 by <a href="https://github.com/tomasaschan"><code>@​tomasaschan</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2303">spf13/cobra#2303</a></li> </ul> <p>This version of <code>pflag</code> carried a breaking change: it renamed <code>ParseErrorsWhitelist</code> to <code>ParseErrorsAllowlist</code> which can break builds if both <code>pflag</code> and <code>cobra</code> are dependencies in your project.</p> <ul> <li>If you use both <code>pflag and </code>cobra<code>, upgrade </code>pflag<code>to 1.0.8 and</code>cobra<code>to</code>1.10.0`</li> <li><strong><em>or</em></strong> use the newer, fixed version of <code>pflag</code> v1.0.9 which keeps the deprecated <code>ParseErrorsWhitelist</code></li> </ul> <p>More details can be found here: <a href="https://redirect.github.com/spf13/cobra/pull/2303#issuecomment-3242333515">spf13/cobra#2303</a></p> <h3>✨ Features</h3> <ul> <li>Flow context to command in SetHelpFunc by <a href="https://github.com/Frassle"><code>@​Frassle</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2241">spf13/cobra#2241</a></li> <li>The default ShellCompDirective can be customized for a command and its subcommands by <a href="https://github.com/albers"><code>@​albers</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2238">spf13/cobra#2238</a></li> </ul> <h3>🐛 Fix</h3> <ul> <li>Upgrade golangci-lint to v2, address findings by <a href="https://github.com/scop"><code>@​scop</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2279">spf13/cobra#2279</a></li> </ul> <h3>🪠 Testing</h3> <ul> <li>Test with Go 1.24 by <a href="https://github.com/harryzcy"><code>@​harryzcy</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2236">spf13/cobra#2236</a></li> <li>chore: Rm GitHub Action PR size labeler by <a href="https://github.com/jpmcb"><code>@​jpmcb</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2256">spf13/cobra#2256</a></li> </ul> <h3>📝 Docs</h3> <ul> <li>Remove traling curlybrace by <a href="https://github.com/yedayak"><code>@​yedayak</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2237">spf13/cobra#2237</a></li> <li>Update command.go by <a href="https://github.com/styee"><code>@​styee</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2248">spf13/cobra#2248</a></li> <li>feat: Add security policy by <a href="https://github.com/jpmcb"><code>@​jpmcb</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2253">spf13/cobra#2253</a></li> <li>Update Readme (Warp) by <a href="https://github.com/ericdachen"><code>@​ericdachen</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2267">spf13/cobra#2267</a></li> <li>Add Periscope to the list of projects using Cobra by <a href="https://github.com/anishathalye"><code>@​anishathalye</code></a> in <a href="https://redirect.github.com/spf13/cobra/pull/2299">spf13/cobra#2299</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/harryzcy"><code>@​harryzcy</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/cobra/pull/2236">spf13/cobra#2236</a></li> <li><a href="https://github.com/yedayak"><code>@​yedayak</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/cobra/pull/2237">spf13/cobra#2237</a></li> <li><a href="https://github.com/Frassle"><code>@​Frassle</code></a> made their first contribution in <a href="https://redirect.github.com/spf13/cobra/pull/2241">spf13/cobra#2241</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/spf13/cobra/commit/7da941c3547e93b8c9f70bbd3befca79c6335388"><code>7da941c</code></a> chore: Bump pflag to v1.0.9 (<a href="https://redirect.github.com/spf13/cobra/issues/2305">#2305</a>)</li> <li><a href="https://github.com/spf13/cobra/commit/51d675196729be769ce235b710ab7058b3aad03a"><code>51d6751</code></a> Bump pflag to 1.0.8 (<a href="https://redirect.github.com/spf13/cobra/issues/2303">#2303</a>)</li> <li><a href="https://github.com/spf13/cobra/commit/3f3b81882534a51628f3286e93c6842d9b2e29ea"><code>3f3b818</code></a> Update README.md with new logo</li> <li><a href="https://github.com/spf13/cobra/commit/dcaf42e2633496bf97d5476d7419071e5c48f40a"><code>dcaf42e</code></a> Add Periscope to the list of projects using Cobra (<a href="https://redirect.github.com/spf13/cobra/issues/2299">#2299</a>)</li> <li><a href="https://github.com/spf13/cobra/commit/6dec1ae26659a130bdb4c985768d1853b0e1bc06"><code>6dec1ae</code></a> The default ShellCompDirective can be customized for a command and its subcom...</li> <li><a href="https://github.com/spf13/cobra/commit/c8289c10302063b9a2e26357e7e0f0bb599f29ce"><code>c8289c1</code></a> chore(golangci-lint): add some exclusion presets</li> <li><a href="https://github.com/spf13/cobra/commit/4af7b64d31989e78e86d65304f693a6d9c77c932"><code>4af7b64</code></a> refactor: apply golangci-lint autofixes, work around false positives</li> <li><a href="https://github.com/spf13/cobra/commit/75790e48fb73c8ba027e0163157a86ce8604ca3e"><code>75790e4</code></a> chore(golangci-lint): upgrade to v2</li> <li><a href="https://github.com/spf13/cobra/commit/db3ddb5cf4968b320ea21f6ee5c2d2202a2e7b22"><code>db3ddb5</code></a> Adding sponsorship to README.md</li> <li><a href="https://github.com/spf13/cobra/commit/67171d6909986ee86fb946f808b87aba88ee417a"><code>67171d6</code></a> putting sponsorship below header</li> <li>Additional commits viewable in <a href="https://github.com/spf13/cobra/compare/v1.8.1...v1.10.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/spf13/cobra&package-manager=go_modules&previous-version=1.8.1&new-version=1.10.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 81f7285 commit aef51fb

File tree

16 files changed

+759
-192
lines changed

16 files changed

+759
-192
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ require (
1313
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00
1414
github.com/olekukonko/tablewriter v1.0.8
1515
github.com/petar-dambovaliev/aho-corasick v0.0.0-20211021192214-5ab2d9280aa9
16-
github.com/spf13/cobra v1.8.1
17-
github.com/spf13/pflag v1.0.7
16+
github.com/spf13/cobra v1.10.1
17+
github.com/spf13/pflag v1.0.9
1818
github.com/spf13/viper v1.20.1
1919
github.com/stretchr/testify v1.11.1
2020
golang.org/x/tools v0.36.0

go.sum

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk
5454
github.com/cloudflare/circl v1.6.1 h1:zqIqSPIndyBh1bjLVVDHMPpVKqp8Su/V+6MeDzzQBQ0=
5555
github.com/cloudflare/circl v1.6.1/go.mod h1:uddAzsPgqdMAYatqJ0lsjX1oECcQLIlRpzZh3pJrofs=
5656
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
57-
github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
57+
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
5858
github.com/cyphar/filepath-securejoin v0.4.1 h1:JyxxyPEaktOD+GAnqIqTf9A8tHyAG22rowi7HkoSU1s=
5959
github.com/cyphar/filepath-securejoin v0.4.1/go.mod h1:Sdj7gXlvMcPZsbhwhQ33GguGLDGQL7h7bg04C/+u9jI=
6060
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -218,11 +218,10 @@ github.com/spf13/afero v1.12.0 h1:UcOPyRBYczmFn6yvphxkn9ZEOY65cpwGKb5mL36mrqs=
218218
github.com/spf13/afero v1.12.0/go.mod h1:ZTlWwG4/ahT8W7T0WQ5uYmjI9duaLQGy3Q2OAl4sk/4=
219219
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
220220
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
221-
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
222-
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
223-
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
224-
github.com/spf13/pflag v1.0.7 h1:vN6T9TfwStFPFM5XzjsvmzZkLuaLX+HS+0SeFLRgU6M=
225-
github.com/spf13/pflag v1.0.7/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
221+
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
222+
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
223+
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
224+
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
226225
github.com/spf13/viper v1.20.1 h1:ZMi+z/lvLyPSCoNtFCpqjy0S4kPbirhpTMwl8BkW9X4=
227226
github.com/spf13/viper v1.20.1/go.mod h1:P9Mdzt1zoHIG8m2eZQinpiBjo6kCmZSKBClNNqjJvu4=
228227
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

vendor/github.com/spf13/cobra/.golangci.yml

Lines changed: 15 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/README.md

Lines changed: 23 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/SECURITY.md

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/spf13/cobra/active_help.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)