FS#73262 - [kubectl] zsh completions erroneously installed as fish completions

Attached to Project: Community Packages
Opened by Stefan Zwanenburg (psYchotic) - Wednesday, 05 January 2022, 14:40 GMT
Last edited by David Runge (dvzrv) - Wednesday, 05 January 2022, 22:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To David Runge (dvzrv)
Christian Rebischke (Shibumi)
Morten Linderud (Foxboron)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The zsh completions for kubectl are erroneously installed as fish completions, leading to errors whenever completions for kubectl are invoked.

Source of the bug can be seen here: https://github.com/archlinux/svntogit-community/blob/packages/kubernetes/trunk/PKGBUILD#L98

That line should probably look like this instead:

_output/bin/kubectl completion fish > _output/kubectl.fish

It appears this was introduced in 1.23.0-1
This task depends upon

Closed by  David Runge (dvzrv)
Wednesday, 05 January 2022, 22:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with kubectl 1.23.1-2
Comment by Stefan Zwanenburg (psYchotic) - Wednesday, 05 January 2022, 14:56 GMT
If you're affected and can't wait for a fix, you could overwrite the completions like so:

kubectl completion fish > /usr/share/fish/vendor_completions.d/kubectl.fish
Comment by David Runge (dvzrv) - Wednesday, 05 January 2022, 21:57 GMT
@psYchotic: Thanks for the report.

I will fix this in a pkgrel bump.

Loading...