dependabot-cli: only run dependabot in order to get completions if supported

This commit is contained in:
Philip Taron
2025-05-26 12:47:59 -07:00
parent 955d607a33
commit b80cf33ab1
+3 -2
View File
@@ -1,10 +1,11 @@
{
lib,
stdenv,
buildGoModule,
dependabot-cli,
dockerTools,
fetchFromGitHub,
installShellFiles,
lib,
makeWrapper,
symlinkJoin,
testers,
@@ -49,7 +50,7 @@ buildGoModule {
installShellFiles
];
postInstall = ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd dependabot \
--bash <($out/bin/dependabot completion bash) \
--fish <($out/bin/dependabot completion fish) \