fix shell completion in garm-cli

This commit is contained in:
2026-03-14 19:27:45 +01:00
parent 49f88e4f96
commit 4f1764d192

View File

@@ -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) \