tektoncd-cli: 0.16.0 -> 0.17.0 (#116036)

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Jack Kelly 2021-03-13 00:01:09 +00:00 committed by GitHub
parent 33dc20d1ab
commit befb92ccf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,23 +2,20 @@
buildGoModule rec {
pname = "tektoncd-cli";
version = "0.16.0";
version = "0.17.0";
src = fetchFromGitHub {
owner = "tektoncd";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-IY9iJa4HcZ60jDPdP47jjC0FiOJesvf2vEENMAYVd4Q=";
sha256 = "sha256-IyYlmatgcVbUj1WCPAFVOIgn1iHM80P4ie6d1YD3ISM=";
};
vendorSha256 = null;
buildFlagsArray = [
"-ldflags="
"-s"
"-w"
"-X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}"
];
preBuild = ''
buildFlagsArray+=("-ldflags" "-s -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${version}")
'';
nativeBuildInputs = [ installShellFiles ];
@ -40,6 +37,14 @@ buildGoModule rec {
--zsh <($out/bin/tkn completion zsh)
'';
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
$out/bin/tkn --help
$out/bin/tkn version | grep "Client version: ${version}"
runHook postInstallCheck
'';
meta = with lib; {
homepage = "https://tekton.dev";
changelog = "https://github.com/tektoncd/cli/releases/tag/v${version}";