Commit 571b4f0a authored by 06kellyjac's avatar 06kellyjac
Browse files

tektoncd-cli: use writableTmpDirAsHomeHook

parent c0ca314f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
  fetchFromGitHub,
  installShellFiles,

  writableTmpDirAsHomeHook,

  stdenv,
  buildPackages,
}:
@@ -31,10 +33,11 @@ buildGoModule (finalAttrs: {

  subPackages = [ "cmd/tkn" ];

  preCheck = ''
    # some tests try to write to the home dir
    export HOME="$TMPDIR"
  nativeCheckInputs = [
    writableTmpDirAsHomeHook
  ];

  preCheck = ''
    # run all tests
    unset subPackages