Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Sep 4, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/spf13/cobra v1.9.1 -> v1.10.1 age confidence

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: spf13/cobra@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: #​2303 (comment)

✨ Features
🐛 Fix
🪠 Testing
📝 Docs

New Contributors

Full Changelog: spf13/cobra@v1.9.1...v1.9.2


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 was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Contributor Author

renovate bot commented Sep 4, 2025

ℹ 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

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

Renovate PR Review Results

⚖️ Safety Assessment: ✅ Safe

🔍 Release Content Analysis

  • v1.10.0: Minor version update with new features (customizable help functions, shell completion directives) and pflag upgrade to v1.0.8
  • v1.10.1: Patch release upgrading pflag to v1.0.9 to restore deprecated ParseErrorsWhitelist for backward compatibility
  • Breaking Changes: The breaking change in pflag v1.0.8 (ParseErrorsWhitelist → ParseErrorsAllowlist) was immediately fixed in v1.0.9
  • Security Fixes: No security-related changes identified in either release

🎯 Impact Scope Investigation

  • Direct Usage: Cobra is used only in cmd/root.go:8 as import and basic command structure in cmd/root.go:23-80
  • Flag Handling: Uses standard Cobra flag APIs in cmd/flags.go:50-63 via rootCmd.Flags() and MarkFlagsMutuallyExclusive()
  • Version Integration: Simple version assignment in cmd/version.go:13
  • No Direct pflag Usage: The codebase uses pflag only indirectly through Cobra's API
  • API Compatibility: All used Cobra APIs (cobra.Command, Flags(), MarkFlagsMutuallyExclusive()) remain unchanged

💡 Recommended Actions

  • Immediate Merge: This update is safe to merge without code changes
  • No Migration Required: The codebase uses stable Cobra APIs that maintain backward compatibility
  • Dependency Resolution: The pflag v1.0.9 upgrade resolves the breaking change concern from v1.0.8

🔗 Reference Links

Generated by koki-develop/claude-renovate-review

@renovate renovate bot force-pushed the renovate/github.com-spf13-cobra-1.x branch from 337df7a to 11eddd4 Compare September 4, 2025 17:13
@renovate renovate bot changed the title fix(deps): update module github.com/spf13/cobra to v1.10.0 fix(deps): update module github.com/spf13/cobra to v1.10.1 Sep 4, 2025
@koki-develop koki-develop merged commit 003a1b3 into main Sep 5, 2025
5 checks passed
@koki-develop koki-develop deleted the renovate/github.com-spf13-cobra-1.x branch September 5, 2025 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants