From 4f1764d192de8b3fc2b46cba1b4bfb936fd7425d Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sat, 14 Mar 2026 19:27:45 +0100 Subject: [PATCH] fix shell completion in garm-cli --- nix/garm-cli.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nix/garm-cli.nix b/nix/garm-cli.nix index c53d314..c42412d 100644 --- a/nix/garm-cli.nix +++ b/nix/garm-cli.nix @@ -25,6 +25,11 @@ buildGoModule rec { ]; postInstall = '' + # We need to set a temporary HOME for the completion scripts as workaround + # because garm-cli tries to write config to the home directory + # when generating the completion scripts + export HOME="$(mktemp -d)" + installShellCompletion --cmd garm-cli \ --bash <($out/bin/garm-cli completion bash) \ --fish <($out/bin/garm-cli completion fish) \