Commit eba34074 authored by 06kellyjac's avatar 06kellyjac
Browse files

tektoncd-cli: use versionCheckHook

parent 571b4f0a
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@

  stdenv,
  buildPackages,

  versionCheckHook,
}:

buildGoModule (finalAttrs: {
@@ -67,13 +69,11 @@ buildGoModule (finalAttrs: {
    ''
  );

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;
  installCheckPhase = ''
    runHook preInstallCheck
    $out/bin/tkn --help
    $out/bin/tkn version | grep "Client version: ${finalAttrs.version}"
    runHook postInstallCheck
  '';
  versionCheckProgramArg = "version";

  meta = {
    homepage = "https://tekton.dev";