forked from mirrors/nixpkgs
tektoncd-cli: 0.16.0 -> 0.17.0 (#116036)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
33dc20d1ab
commit
befb92ccf5
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue