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
This version, while only a patch bump, includes a (very minor) breaking change: the flag.ParseErrorsWhitelist struct and corresponding FlagSet.parseErrorsWhitelist field have been renamed to ParseErrorsAllowlist.
This should result in compilation errors in any code that uses these fields, which can be fixed by adjusting the names at call sites. There is no change in semantics or behavior of the struct or field referred to by these names. If your code compiles without errors after bumping to/past v1.0.8, you are not affected by this change.
The breaking change was reverted in v1.0.9, by means of re-introducing the old names with deprecation warnings. The plan is still to remove them in a future release, so if your code does depend on the old names, please change them to use the new names at your earliest convenience.
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/spf13/cobra](https://github.com/spf13/cobra) | require | minor | `v1.9.1` -> `v1.10.1` |
| [github.com/spf13/pflag](https://github.com/spf13/pflag) | require | patch | `v1.0.7` -> `v1.0.10` |
| [github.com/spf13/viper](https://github.com/spf13/viper) | require | minor | `v1.20.1` -> `v1.21.0` |
---
### 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 [@​jpmcb](https://github.com/jpmcb) in [#​2305](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 [@​tomasaschan](https://github.com/tomasaschan) in [#​2303](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: [#​2303 (comment)](https://github.com/spf13/cobra/pull/2303#issuecomment-3242333515)
##### ✨ Features
- Flow context to command in SetHelpFunc by [@​Frassle](https://github.com/Frassle) in [#​2241](https://github.com/spf13/cobra/pull/2241)
- The default ShellCompDirective can be customized for a command and its subcommands by [@​albers](https://github.com/albers) in [#​2238](https://github.com/spf13/cobra/pull/2238)
##### 🐛 Fix
- Upgrade golangci-lint to v2, address findings by [@​scop](https://github.com/scop) in [#​2279](https://github.com/spf13/cobra/pull/2279)
##### 🪠 Testing
- Test with Go 1.24 by [@​harryzcy](https://github.com/harryzcy) in [#​2236](https://github.com/spf13/cobra/pull/2236)
- chore: Rm GitHub Action PR size labeler by [@​jpmcb](https://github.com/jpmcb) in [#​2256](https://github.com/spf13/cobra/pull/2256)
##### 📝 Docs
- Remove traling curlybrace by [@​yedayak](https://github.com/yedayak) in [#​2237](https://github.com/spf13/cobra/pull/2237)
- Update command.go by [@​styee](https://github.com/styee) in [#​2248](https://github.com/spf13/cobra/pull/2248)
- feat: Add security policy by [@​jpmcb](https://github.com/jpmcb) in [#​2253](https://github.com/spf13/cobra/pull/2253)
- Update Readme (Warp) by [@​ericdachen](https://github.com/ericdachen) in [#​2267](https://github.com/spf13/cobra/pull/2267)
- Add Periscope to the list of projects using Cobra by [@​anishathalye](https://github.com/anishathalye) in [#​2299](https://github.com/spf13/cobra/pull/2299)
#### New Contributors
- [@​harryzcy](https://github.com/harryzcy) made their first contribution in [#​2236](https://github.com/spf13/cobra/pull/2236)
- [@​yedayak](https://github.com/yedayak) made their first contribution in [#​2237](https://github.com/spf13/cobra/pull/2237)
- [@​Frassle](https://github.com/Frassle) made their first contribution in [#​2241](https://github.com/spf13/cobra/pull/2241)
- [@​styee](https://github.com/styee) made their first contribution in [#​2248](https://github.com/spf13/cobra/pull/2248)
- [@​ericdachen](https://github.com/ericdachen) made their first contribution in [#​2267](https://github.com/spf13/cobra/pull/2267)
- [@​albers](https://github.com/albers) made their first contribution in [#​2238](https://github.com/spf13/cobra/pull/2238)
- [@​anishathalye](https://github.com/anishathalye) made their first contribution in [#​2299](https://github.com/spf13/cobra/pull/2299)
- [@​tomasaschan](https://github.com/tomasaschan) made their first contribution in [#​2303](https://github.com/spf13/cobra/pull/2303)
**Full Changelog**: <https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2>
</details>
<details>
<summary>spf13/pflag (github.com/spf13/pflag)</summary>
### [`v1.0.10`](https://github.com/spf13/pflag/releases/tag/v1.0.10)
[Compare Source](https://github.com/spf13/pflag/compare/v1.0.9...v1.0.10)
#### What's Changed
- fix deprecation comment for (FlagSet.)ParseErrorsWhitelist by [@​thaJeztah](https://github.com/thaJeztah) in [#​447](https://github.com/spf13/pflag/pull/447)
- remove uses of errors.Is, which requires go1.13, move go1.16/go1.21 tests to separate file by [@​thaJeztah](https://github.com/thaJeztah) in [#​448](https://github.com/spf13/pflag/pull/448)
#### New Contributors
- [@​thaJeztah](https://github.com/thaJeztah) made their first contribution in [#​447](https://github.com/spf13/pflag/pull/447)
**Full Changelog**: <https://github.com/spf13/pflag/compare/v1.0.9...v1.0.10>
### [`v1.0.9`](https://github.com/spf13/pflag/releases/tag/v1.0.9)
[Compare Source](https://github.com/spf13/pflag/compare/v1.0.8...v1.0.9)
#### What's Changed
- fix: Restore ParseErrorsWhitelist name for now by [@​tomasaschan](https://github.com/tomasaschan) in [#​446](https://github.com/spf13/pflag/pull/446)
**Full Changelog**: <https://github.com/spf13/pflag/compare/v1.0.8...v1.0.9>
### [`v1.0.8`](https://github.com/spf13/pflag/releases/tag/v1.0.8)
[Compare Source](https://github.com/spf13/pflag/compare/v1.0.7...v1.0.8)
#### :warning: Breaking Change
This version, while only a patch bump, includes a (very minor) breaking change: the `flag.ParseErrorsWhitelist` struct and corresponding `FlagSet.parseErrorsWhitelist` field have been renamed to `ParseErrorsAllowlist`.
This should result in compilation errors in any code that uses these fields, which can be fixed by adjusting the names at call sites. There is no change in semantics or behavior of the struct or field referred to by these names. If your code compiles without errors after bumping to/past v1.0.8, you are not affected by this change.
The breaking change was reverted in v1.0.9, by means of re-introducing the old names with deprecation warnings. The plan is still to remove them in a future release, so if your code does depend on the old names, please change them to use the new names at your earliest convenience.
#### What's Changed
- Remove Redundant "Unknown-Flag" Error by [@​vaguecoder](https://github.com/vaguecoder) in [#​364](https://github.com/spf13/pflag/pull/364)
- Switching from whitelist to Allowlist terminology by [@​dubrie](https://github.com/dubrie) in [#​261](https://github.com/spf13/pflag/pull/261)
- Omit zero time.Time default from usage line by [@​mologie](https://github.com/mologie) in [#​438](https://github.com/spf13/pflag/pull/438)
- implement CopyToGoFlagSet by [@​pohly](https://github.com/pohly) in [#​330](https://github.com/spf13/pflag/pull/330)
- flag: Emulate stdlib behavior and do not print ErrHelp by [@​tmc](https://github.com/tmc) in [#​407](https://github.com/spf13/pflag/pull/407)
- Print Default Values of String-to-String in Sorted Order by [@​vaguecoder](https://github.com/vaguecoder) in [#​365](https://github.com/spf13/pflag/pull/365)
- fix: Don't print ErrHelp in ParseAll by [@​tomasaschan](https://github.com/tomasaschan) in [#​443](https://github.com/spf13/pflag/pull/443)
- Reset args on re-parse even if empty by [@​tomasaschan](https://github.com/tomasaschan) in [#​444](https://github.com/spf13/pflag/pull/444)
#### New Contributors
- [@​vaguecoder](https://github.com/vaguecoder) made their first contribution in [#​364](https://github.com/spf13/pflag/pull/364)
- [@​dubrie](https://github.com/dubrie) made their first contribution in [#​261](https://github.com/spf13/pflag/pull/261)
- [@​mologie](https://github.com/mologie) made their first contribution in [#​438](https://github.com/spf13/pflag/pull/438)
- [@​pohly](https://github.com/pohly) made their first contribution in [#​330](https://github.com/spf13/pflag/pull/330)
- [@​tmc](https://github.com/tmc) made their first contribution in [#​407](https://github.com/spf13/pflag/pull/407)
- [@​tomasaschan](https://github.com/tomasaschan) made their first contribution in [#​443](https://github.com/spf13/pflag/pull/443)
**Full Changelog**: <https://github.com/spf13/pflag/compare/v1.0.7...v1.0.8>
</details>
<details>
<summary>spf13/viper (github.com/spf13/viper)</summary>
### [`v1.21.0`](https://github.com/spf13/viper/releases/tag/v1.21.0)
[Compare Source](https://github.com/spf13/viper/compare/v1.20.1...v1.21.0)
<!-- Release notes generated using configuration in .github/release.yml at v1.21.0 -->
#### What's Changed
##### Enhancements 🚀
- Add support for flags pflag.BoolSlice, pflag.UintSlice and pflag.Float64Slice by [@​nmvalera](https://github.com/nmvalera) in [#​2015](https://github.com/spf13/viper/pull/2015)
- feat: use maintained yaml library by [@​sagikazarmark](https://github.com/sagikazarmark) in [#​2040](https://github.com/spf13/viper/pull/2040)
##### Bug Fixes 🐛
- fix(config): get config type from v.configType or config file ext by [@​GuillaumeBAECHLER](https://github.com/GuillaumeBAECHLER) in [#​2003](https://github.com/spf13/viper/pull/2003)
- fix: config type check when loading any config by [@​sagikazarmark](https://github.com/sagikazarmark) in [#​2007](https://github.com/spf13/viper/pull/2007)
##### Dependency Updates ⬆️
- Update dependencies by [@​sagikazarmark](https://github.com/sagikazarmark) in [#​1993](https://github.com/spf13/viper/pull/1993)
- build(deps): bump github.com/spf13/cast from 1.7.1 to 1.8.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2017](https://github.com/spf13/viper/pull/2017)
- build(deps): bump github.com/pelletier/go-toml/v2 from 2.2.3 to 2.2.4 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2013](https://github.com/spf13/viper/pull/2013)
- build(deps): bump github.com/sagikazarmark/locafero from 0.8.0 to 0.9.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2008](https://github.com/spf13/viper/pull/2008)
- build(deps): bump golang.org/x/net from 0.37.0 to 0.38.0 in /remote by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2016](https://github.com/spf13/viper/pull/2016)
- build(deps): bump github.com/spf13/cast from 1.8.0 to 1.9.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2020](https://github.com/spf13/viper/pull/2020)
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2028](https://github.com/spf13/viper/pull/2028)
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2035](https://github.com/spf13/viper/pull/2035)
- build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2036](https://github.com/spf13/viper/pull/2036)
- build(deps): bump github.com/fsnotify/fsnotify from 1.8.0 to 1.9.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2012](https://github.com/spf13/viper/pull/2012)
- build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.1 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2052](https://github.com/spf13/viper/pull/2052)
- build(deps): bump github.com/go-viper/mapstructure/v2 from 2.3.0 to 2.4.0 in /remote by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2048](https://github.com/spf13/viper/pull/2048)
- build(deps): bump github.com/spf13/pflag from 1.0.7 to 1.0.10 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​2056](https://github.com/spf13/viper/pull/2056)
- chore: update dependencies by [@​sagikazarmark](https://github.com/sagikazarmark) in [#​2057](https://github.com/spf13/viper/pull/2057)
##### Other Changes
- Update update guide with `mapstructure` package replacement. by [@​aldas](https://github.com/aldas) in [#​2004](https://github.com/spf13/viper/pull/2004)
- refactor: use the built-in max/min to simplify the code by [@​yingshanghuangqiao](https://github.com/yingshanghuangqiao) in [#​2029](https://github.com/spf13/viper/pull/2029)
#### New Contributors
- [@​GuillaumeBAECHLER](https://github.com/GuillaumeBAECHLER) made their first contribution in [#​2003](https://github.com/spf13/viper/pull/2003)
- [@​aldas](https://github.com/aldas) made their first contribution in [#​2004](https://github.com/spf13/viper/pull/2004)
- [@​nmvalera](https://github.com/nmvalera) made their first contribution in [#​2015](https://github.com/spf13/viper/pull/2015)
- [@​yingshanghuangqiao](https://github.com/yingshanghuangqiao) made their first contribution in [#​2029](https://github.com/spf13/viper/pull/2029)
- [@​ccoVeille](https://github.com/ccoVeille) made their first contribution in [#​2046](https://github.com/spf13/viper/pull/2046)
- [@​spacez320](https://github.com/spacez320) made their first contribution in [#​2050](https://github.com/spf13/viper/pull/2050)
**Full Changelog**: <https://github.com/spf13/viper/compare/v1.20.0...v1.21.0>
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.
---
- [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4yIiwidXBkYXRlZEluVmVyIjoiNDEuOTguMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6WyJyZW5vdmF0ZS9hdXRvbWVyZ2UiLCJyZW5vdmF0ZS9nb2xhbmciXX0=-->
CSRBot
scheduled this pull request to auto merge when all checks succeed 2025-09-01 00:05:28 +02:00
CSRBot
changed title from chore(deps): update module github.com/spf13/pflag to v1.0.8 to chore(deps): update module github.com/spf13/pflag to v1.0.92025-09-01 12:05:00 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
v1.9.1->v1.10.1v1.0.7->v1.0.10v1.20.1->v1.21.0Release Notes
spf13/cobra (github.com/spf13/cobra)
v1.10.1Compare Source
🐛 Fix
v1.0.9 of pflags brought back
ParseErrorsWhitelistand marked it as deprecatedFull Changelog: https://github.com/spf13/cobra/compare/v1.10.0...v1.10.1
v1.10.0Compare Source
What's Changed
🚨 Attention!
This version of
pflagcarried a breaking change: it renamedParseErrorsWhitelisttoParseErrorsAllowlistwhich can break builds if bothpflagandcobraare dependencies in your project.pflag andcobra, upgradepflagto 1.0.8 andcobrato1.10.0`pflagv1.0.9 which keeps the deprecatedParseErrorsWhitelistMore details can be found here: #2303 (comment)
✨ Features
🐛 Fix
🪠 Testing
📝 Docs
New Contributors
Full Changelog: https://github.com/spf13/cobra/compare/v1.9.1...v1.9.2
spf13/pflag (github.com/spf13/pflag)
v1.0.10Compare Source
What's Changed
New Contributors
Full Changelog: https://github.com/spf13/pflag/compare/v1.0.9...v1.0.10
v1.0.9Compare Source
What's Changed
Full Changelog: https://github.com/spf13/pflag/compare/v1.0.8...v1.0.9
v1.0.8Compare Source
⚠️ Breaking Change
This version, while only a patch bump, includes a (very minor) breaking change: the
flag.ParseErrorsWhiteliststruct and correspondingFlagSet.parseErrorsWhitelistfield have been renamed toParseErrorsAllowlist.This should result in compilation errors in any code that uses these fields, which can be fixed by adjusting the names at call sites. There is no change in semantics or behavior of the struct or field referred to by these names. If your code compiles without errors after bumping to/past v1.0.8, you are not affected by this change.
The breaking change was reverted in v1.0.9, by means of re-introducing the old names with deprecation warnings. The plan is still to remove them in a future release, so if your code does depend on the old names, please change them to use the new names at your earliest convenience.
What's Changed
New Contributors
Full Changelog: https://github.com/spf13/pflag/compare/v1.0.7...v1.0.8
spf13/viper (github.com/spf13/viper)
v1.21.0Compare Source
What's Changed
Enhancements 🚀
Bug Fixes 🐛
Dependency Updates ⬆️
Other Changes
mapstructurepackage replacement. by @aldas in #2004New Contributors
Full Changelog: https://github.com/spf13/viper/compare/v1.20.0...v1.21.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.
97f780d4e8toe058180744chore(deps): update module github.com/spf13/pflag to v1.0.8to chore(deps): update module github.com/spf13/pflag to v1.0.9e058180744to6b4b01f9e0chore(deps): update module github.com/spf13/pflag to v1.0.9to chore(deps): update go modules6b4b01f9e0to37a7834ce837a7834ce8to88c6d87b5d88c6d87b5dto353416bf39ℹ Artifact update notice
File name: go.mod
In order to perform the update(s) described in the table above, Renovate ran the
go getcommand, which resulted in the following additional change(s):Details:
github.com/go-viper/mapstructure/v2v2.2.1->v2.4.0github.com/sagikazarmark/locaferov0.9.0->v0.11.0github.com/sourcegraph/concv0.3.0->v0.3.1-0.20240121214520-5f936abd7ae8github.com/spf13/aferov1.14.0->v1.15.0github.com/spf13/castv1.8.0->v1.10.0golang.org/x/textv0.25.0->v0.28.0353416bf39toe5715060f4