Merge pull request #190231 from figsoda/kubespy-version

kubespy: fix version command and install completion files
This commit is contained in:
figsoda 2022-09-10 19:56:29 -04:00 committed by GitHub
commit 2b2b8546b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,15 +13,18 @@ buildGoModule rec {
vendorSha256 = "sha256-HmMh5jrRGs4rtN9GLddS9IwITyvVmOrL5TShhQeyxKU=";
nativeBuildInputs = [ installShellFiles ];
doCheck = false;
# TODO: enable after https://github.com/pulumi/kubespy/issues/72 is addressed.
# postInstall = ''
# for shell in bash zsh; do
# $out/bin/kubespy completion $shell > kubespy.$shell
# installShellCompletion kubespy.$shell
# done
# '';
ldflags = [ "-X" "github.com/pulumi/kubespy/version.Version=${version}" ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/kubespy completion $shell > kubespy.$shell
installShellCompletion kubespy.$shell
done
'';
meta = with lib; {
description = "A tool to observe Kubernetes resources in real time";