@@ -2,23 +2,20 @@
22
33buildGoModule rec {
44 pname = "tektoncd-cli";
5− version = "0.16.0";
5+ version = "0.17.0";
66
77 src = fetchFromGitHub {
88 owner = "tektoncd";
99 repo = "cli";
1010 rev = "v${version}";
11− sha256 = "sha256-IY9iJa4HcZ60jDPdP47jjC0FiOJesvf2vEENMAYVd4Q=";
11+ sha256 = "sha256-IyYlmatgcVbUj1WCPAFVOIgn1iHM80P4ie6d1YD3ISM=";
1212 };
1313
1414 vendorSha256 = null;
1515
16− buildFlagsArray = [
17− "-ldflags="
18− "-s"
19− "-w"
20− "-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}"
21− ];
16+ preBuild = ''
17+ buildFlagsArray+=("-ldflags" "-s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}")
18+ '';
2219
2320 nativeBuildInputs = [ installShellFiles ];
2421
@@ -40,6 +37,14 @@ buildGoModule rec {
4037 --zsh <($out/bin/tkn completion zsh)
4138 '';
4239
40+ doInstallCheck = true;
41+ installCheckPhase = ''
42+ runHook preInstallCheck
43+ $out/bin/tkn --help
44+ $out/bin/tkn version | grep "Client version: ${version}"
45+ runHook postInstallCheck
46+ '';
47+
4348 meta = with lib; {
4449 homepage = "https://tekton.dev";
4550 changelog = "https://github.com/tektoncd/cli/releases/tag/v${version}";