Skip to content

Bump github.com/spf13/cobra from v1.4.0 to v1.5.0#6196

Merged
samcoe merged 1 commit intocli:trunkfrom
anthonyfok:bump-cobra-from-v1.4.0-to-v1.5.0
Sep 6, 2022
Merged

Bump github.com/spf13/cobra from v1.4.0 to v1.5.0#6196
samcoe merged 1 commit intocli:trunkfrom
anthonyfok:bump-cobra-from-v1.4.0-to-v1.5.0

Conversation

@anthonyfok
Copy link
Contributor

@anthonyfok anthonyfok commented Sep 5, 2022

Cobra v1.5.0 contains a fix for the zsh autocompletion #compdef line to only complete <command>, not _<command> (the completion function itself), see spf13/cobra#1690

TestNewCmdCompletion for zsh is updated accordingly.


Thanks to @zhsj for discovering the FTBFS (fail to build from source) bug in Debian where golang-github-spf13-cobra-dev was updated to 1.5.0 some time ago, see https://bugs.debian.org/1019137

Cobra v1.5.0 contains a fix for the zsh autocompletion #compdef line
to only complete <command>, not _<command> (the completion function
itself), see spf13/cobra#1690

TestNewCmdCompletion for zsh is updated accordingly.
@anthonyfok anthonyfok requested a review from a team as a code owner September 5, 2022 09:03
@anthonyfok anthonyfok requested review from vilmibm and removed request for a team September 5, 2022 09:03
@cliAutomation
Copy link
Collaborator

Hi! Thanks for the pull request. Please ensure that this change is linked to an issue by mentioning an issue number in the description of the pull request. If this pull request would close the issue, please put the word 'Fixes' before the issue number somewhere in the pull request body. If this is a tiny change like fixing a typo, feel free to ignore this message.

@cliAutomation cliAutomation added the external pull request originating outside of the CLI core team label Sep 5, 2022
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🚀

@samcoe samcoe merged commit c219579 into cli:trunk Sep 6, 2022
ottok pushed a commit to ottok/github-cli that referenced this pull request Dec 29, 2024
Cobra v1.5.0 contains a fix for the zsh autocompletion #compdef line
to only complete <command>, not _<command> the completion function itself,
See cli#6196

TestNewCmdCompletion for zsh, which checks that #compdef line,
is updated accordingly.

Fixes FTBFS with golang-github-spf13-cobra-dev (>= 1.5.0)

Thanks: Shengjing Zhu for reporting the issue.
Closes: #1019137
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external pull request originating outside of the CLI core team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants