Unverified Commit 932be94a authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

k9s: fix broken completion scripts on aarch64-darwin
parents 0e1a6d89 b0e8cc52
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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) \