Merge pull request #285835 from sysedwinistrator/k9s-fix-darwin-completion

k9s: fix broken completion scripts on aarch64-darwin
This commit is contained in:
Weijia Wang
2024-02-07 14:59:05 +01:00
committed by GitHub
@@ -42,6 +42,11 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
# k9s requires a writeable log directory
# Otherwise an error message is printed
# into the completion scripts
export K9S_LOGS_DIR=$(mktemp -d)
installShellCompletion --cmd k9s \
--bash <($out/bin/k9s completion bash) \
--fish <($out/bin/k9s completion fish) \