From af55c1c0b967df634ae1dc7d25b1d89270dd5a1e Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 11 Jul 2019 22:50:58 +0900 Subject: [PATCH] sensu-go: 5.10.0 -> 5.11.0 --- pkgs/servers/monitoring/sensu-go/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/monitoring/sensu-go/default.nix b/pkgs/servers/monitoring/sensu-go/default.nix index 559948468509..4bb46693b469 100644 --- a/pkgs/servers/monitoring/sensu-go/default.nix +++ b/pkgs/servers/monitoring/sensu-go/default.nix @@ -4,8 +4,8 @@ let generic = { subPackages, pname, postInstall ? "" }: buildGoPackage rec { inherit pname; - version = "5.10.0"; - shortRev = "c7551ba"; # for internal version info + version = "5.11.0"; + shortRev = "dd8f160"; # for internal version info goPackagePath = "github.com/sensu/sensu-go"; @@ -13,7 +13,7 @@ let owner = "sensu"; repo = "sensu-go"; rev = version; - sha256 = "1hma54mdh150d51rwz5csqbn0h24qk6hydjmib68j7zd7kp92yb5"; + sha256 = "05dx0nxcjl6fy68br2a37j52iz71kvqnqp29swcif2nwvq7w8mxx"; }; inherit subPackages postInstall; @@ -44,7 +44,14 @@ in "''${!outputBin}/share/zsh/site-functions" ''${!outputBin}/bin/sensuctl completion bash > ''${!outputBin}/share/bash-completion/completions/sensuctl - ''${!outputBin}/bin/sensuctl completion zsh > ''${!outputBin}/share/zsh/site-functions/_sensuctl + + # https://github.com/sensu/sensu-go/issues/3132 + ( + echo "#compdef sensuctl" + ''${!outputBin}/bin/sensuctl completion zsh + echo '_complete sensuctl 2>/dev/null' + ) > ''${!outputBin}/share/zsh/site-functions/_sensuctl + ''; };