Update module github.com/spf13/cobra to v1.10.1 #4

Merged
ginjiruu merged 1 commit from renovate/github.com-spf13-cobra-1.x into master 2025-09-01 22:48:25 +00:00
Member

This PR contains the following updates:

Package Type Update Change
github.com/spf13/cobra require minor v1.8.1 -> v1.10.1

Release Notes

spf13/cobra (github.com/spf13/cobra)

v1.10.1

Compare Source

🐛 Fix

v1.0.9 of pflags brought back ParseErrorsWhitelist and marked it as deprecated

Full Changelog: https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1

v1.10.0

Compare Source

What's Changed

🚨 Attention!

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 pflagto 1.0.8 andcobrato1.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

Features
🐛 Fix
🪠 Testing
📝 Docs

New Contributors

Full Changelog: https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2

v1.9.1

Compare Source

🐛 Fixes

Full Changelog: https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1

v1.9.0

Compare Source

Features

🐛 Fixes

🤖 Completions

🧪 Testing

✍🏼 Documentation

🔧 Dependency upgrades


Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!

👋🏼 New Contributors

Full Changelog: https://github.com/spf13/cobra/compare/v1.8.1...v1.9.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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/spf13/cobra](https://github.com/spf13/cobra) | require | minor | `v1.8.1` -> `v1.10.1` | --- ### Release Notes <details> <summary>spf13/cobra (github.com/spf13/cobra)</summary> ### [`v1.10.1`](https://github.com/spf13/cobra/releases/tag/v1.10.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1) ##### 🐛 Fix - chore: upgrade pflags v1.0.9 by [@&#8203;jpmcb](https://github.com/jpmcb) in https://github.com/spf13/cobra/pull/2305 v1.0.9 of pflags brought back `ParseErrorsWhitelist` and marked it as deprecated **Full Changelog**: https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1 ### [`v1.10.0`](https://github.com/spf13/cobra/releases/tag/v1.10.0) [Compare Source](https://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://github.com/tomasaschan) in https://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 ##### ✨ Features - Flow context to command in SetHelpFunc by [@&#8203;Frassle](https://github.com/Frassle) in https://github.com/spf13/cobra/pull/2241 - The default ShellCompDirective can be customized for a command and its subcommands by [@&#8203;albers](https://github.com/albers) in https://github.com/spf13/cobra/pull/2238 ##### 🐛 Fix - Upgrade golangci-lint to v2, address findings by [@&#8203;scop](https://github.com/scop) in https://github.com/spf13/cobra/pull/2279 ##### 🪠 Testing - Test with Go 1.24 by [@&#8203;harryzcy](https://github.com/harryzcy) in https://github.com/spf13/cobra/pull/2236 - chore: Rm GitHub Action PR size labeler by [@&#8203;jpmcb](https://github.com/jpmcb) in https://github.com/spf13/cobra/pull/2256 ##### 📝 Docs - Remove traling curlybrace by [@&#8203;yedayak](https://github.com/yedayak) in https://github.com/spf13/cobra/pull/2237 - Update command.go by [@&#8203;styee](https://github.com/styee) in https://github.com/spf13/cobra/pull/2248 - feat: Add security policy by [@&#8203;jpmcb](https://github.com/jpmcb) in https://github.com/spf13/cobra/pull/2253 - Update Readme (Warp) by [@&#8203;ericdachen](https://github.com/ericdachen) in https://github.com/spf13/cobra/pull/2267 - Add Periscope to the list of projects using Cobra by [@&#8203;anishathalye](https://github.com/anishathalye) in https://github.com/spf13/cobra/pull/2299 #### New Contributors - [@&#8203;harryzcy](https://github.com/harryzcy) made their first contribution in https://github.com/spf13/cobra/pull/2236 - [@&#8203;yedayak](https://github.com/yedayak) made their first contribution in https://github.com/spf13/cobra/pull/2237 - [@&#8203;Frassle](https://github.com/Frassle) made their first contribution in https://github.com/spf13/cobra/pull/2241 - [@&#8203;styee](https://github.com/styee) made their first contribution in https://github.com/spf13/cobra/pull/2248 - [@&#8203;ericdachen](https://github.com/ericdachen) made their first contribution in https://github.com/spf13/cobra/pull/2267 - [@&#8203;albers](https://github.com/albers) made their first contribution in https://github.com/spf13/cobra/pull/2238 - [@&#8203;anishathalye](https://github.com/anishathalye) made their first contribution in https://github.com/spf13/cobra/pull/2299 - [@&#8203;tomasaschan](https://github.com/tomasaschan) made their first contribution in https://github.com/spf13/cobra/pull/2303 **Full Changelog**: https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2 ### [`v1.9.1`](https://github.com/spf13/cobra/releases/tag/v1.9.1) [Compare Source](https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1) ##### 🐛 Fixes - Fix CompletionFunc implementation by [@&#8203;ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2234 - Revert "Make detection for test-binary more universal ([#&#8203;2173](https://github.com/spf13/cobra/issues/2173))" by [@&#8203;marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2235 **Full Changelog**: https://github.com/spf13/cobra/compare/v1.9.0...v1.9.1 ### [`v1.9.0`](https://github.com/spf13/cobra/releases/tag/v1.9.0) [Compare Source](https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0) #### ✨ Features - Allow linker to perform deadcode elimination for program using Cobra by [@&#8203;aarzilli](https://github.com/aarzilli) in https://github.com/spf13/cobra/pull/1956 - Add default completion command even if there are no other sub-commands by [@&#8203;marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/1559 - Add CompletionWithDesc helper by [@&#8203;ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2231 #### 🐛 Fixes - Fix deprecation comment for Command.SetOutput by [@&#8203;thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2172 - Replace deprecated ioutil usage by [@&#8203;nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2181 - Fix --version help and output for plugins by [@&#8203;nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2180 - Allow to reset the templates to the default by [@&#8203;marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2229 #### 🤖 Completions - Make Powershell completion work in constrained mode by [@&#8203;lstemplinger](https://github.com/lstemplinger) in https://github.com/spf13/cobra/pull/2196 - Improve detection for flags that accept multiple values by [@&#8203;thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2210 - add CompletionFunc type to help with completions by [@&#8203;ccoVeille](https://github.com/ccoVeille) in https://github.com/spf13/cobra/pull/2220 - Add similar whitespace escape logic to bash v2 completions than in other completions by [@&#8203;kangasta](https://github.com/kangasta) in https://github.com/spf13/cobra/pull/1743 - Print ActiveHelp for bash along other completions by [@&#8203;marckhouzam](https://github.com/marckhouzam) in https://github.com/spf13/cobra/pull/2076 - fix(completions): Complete map flags multiple times by [@&#8203;gabe565](https://github.com/gabe565) in https://github.com/spf13/cobra/pull/2174 - fix(bash): nounset unbound file filter variable on empty extension by [@&#8203;scop](https://github.com/scop) in https://github.com/spf13/cobra/pull/2228 #### 🧪 Testing - Test also with go 1.23 by [@&#8203;nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2182 - Make detection for test-binary more universal by [@&#8203;thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2173 #### ✍🏼 Documentation - docs: update README.md by [@&#8203;eltociear](https://github.com/eltociear) in https://github.com/spf13/cobra/pull/2197 - Improve site formatting by [@&#8203;nirs](https://github.com/nirs) in https://github.com/spf13/cobra/pull/2183 - doc: add Conduit by [@&#8203;raulb](https://github.com/raulb) in https://github.com/spf13/cobra/pull/2230 - doc: azion project added to the list of CLIs that use cobra by [@&#8203;maxwelbm](https://github.com/maxwelbm) in https://github.com/spf13/cobra/pull/2198 - Fix broken links in active_help.md by [@&#8203;vuil](https://github.com/vuil) in https://github.com/spf13/cobra/pull/2202 - chore: fix function name in comment by [@&#8203;zhuhaicity](https://github.com/zhuhaicity) in https://github.com/spf13/cobra/pull/2216 #### 🔧 Dependency upgrades - build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6 by [@&#8203;thaJeztah](https://github.com/thaJeztah) in https://github.com/spf13/cobra/pull/2206 - Update to latest go-md2man by [@&#8203;mikelolasagasti](https://github.com/mikelolasagasti) in https://github.com/spf13/cobra/pull/2201 - Upgrade `pflag` dependencies for v1.9.0 by [@&#8203;jpmcb](https://github.com/jpmcb) in https://github.com/spf13/cobra/pull/2233 *** Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!! ##### 👋🏼 New Contributors - [@&#8203;gabe565](https://github.com/gabe565) made their first contribution in https://github.com/spf13/cobra/pull/2174 - [@&#8203;maxwelbm](https://github.com/maxwelbm) made their first contribution in https://github.com/spf13/cobra/pull/2198 - [@&#8203;lstemplinger](https://github.com/lstemplinger) made their first contribution in https://github.com/spf13/cobra/pull/2196 - [@&#8203;vuil](https://github.com/vuil) made their first contribution in https://github.com/spf13/cobra/pull/2202 - [@&#8203;mikelolasagasti](https://github.com/mikelolasagasti) made their first contribution in https://github.com/spf13/cobra/pull/2201 - [@&#8203;zhuhaicity](https://github.com/zhuhaicity) made their first contribution in https://github.com/spf13/cobra/pull/2216 - [@&#8203;ccoVeille](https://github.com/ccoVeille) made their first contribution in https://github.com/spf13/cobra/pull/2220 - [@&#8203;kangasta](https://github.com/kangasta) made their first contribution in https://github.com/spf13/cobra/pull/1743 - [@&#8203;aarzilli](https://github.com/aarzilli) made their first contribution in https://github.com/spf13/cobra/pull/1956 **Full Changelog**: https://github.com/spf13/cobra/compare/v1.8.1...v1.9.0 </details> --- ### 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNjQuMCIsInVwZGF0ZWRJblZlciI6IjM5LjI2NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
Author
Member

ℹ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
github.com/spf13/pflag v1.0.6 -> v1.0.9
### ℹ Artifact update notice ##### File name: go.mod In order to perform the update(s) described in the table above, Renovate ran the `go get` command, which resulted in the following additional change(s): - 1 additional dependency was updated Details: | **Package** | **Change** | | :----------------------- | :------------------- | | `github.com/spf13/pflag` | `v1.0.6` -> `v1.0.9` |
renovate-bot changed title from Update module github.com/spf13/cobra to v1.10.0 to Update module github.com/spf13/cobra to v1.10.1 2025-09-01 18:03:07 +00:00
renovate-bot force-pushed renovate/github.com-spf13-cobra-1.x from b6e3556000 to 0eb4f55403 2025-09-01 18:03:08 +00:00 Compare
ginjiruu merged commit 902559ed3f into master 2025-09-01 22:48:25 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lab/pkgup!4
No description provided.