]> git.scottworley.com Git - pinch/commitdiff
fallback git-cache 1.3.1 -> 1.4.1
authorScott Worley <scottworley@scottworley.com>
Fri, 9 Jul 2021 23:06:34 +0000 (16:06 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 9 Jul 2021 23:19:12 +0000 (16:19 -0700)
default.nix
tests/lib/test-setup.sh

index 071c4283cd5a7e1b699d8bfbe3d0c25a8d23d8ac..c69c03af062693971319cf3bab0ff39650088324 100644 (file)
@@ -22,11 +22,11 @@ let
   git-cache-fallback = { buildPythonPackage, fetchgit, git, backoff, mypy, }:
     buildPythonPackage rec {
       pname = "git-cache";
-      version = "1.3.1";
+      version = "1.4.1";
       src = fetchgit {
         url = "https://scottworley.com/git-cache.git";
         rev = "v${version}";
-        sha256 = "0awz7f6avzw9fk9gp1kadj0nbmf1s60qic9zb6ww92zig3khg12k";
+        sha256 = "0ml1myhmd9mw1z5bwni9fhvx7h9dknhmqq4nyci9n5lvrhbmcdc9";
       };
       propagatedBuildInputs = [ backoff ];
       checkInputs = [ git mypy ];
index f3eb661a175ff2b588f0aed2e4dfed6e1874e6e5..e4260f4646f85a73fdca62b1c81a5e6d7579ed93 100644 (file)
@@ -8,7 +8,9 @@ export GIT_AUTHOR_EMAIL=auto@mati.on
 export GIT_COMMITTER_EMAIL=auto@mati.on
 
 cache_dir=$(mktemp -d)
+data_dir=$(mktemp -d)
 export XDG_CACHE_HOME=$cache_dir
+export XDG_DATA_HOME=$data_dir
 
 nix_store=$(mktemp -d)
 nix_state=$(mktemp -d)
@@ -41,6 +43,7 @@ test_cleanup() {
   if [ "$repo_dir"  ];then rm -rf "$repo_dir";  fi
   if [ "$conf"      ];then rm     "$conf";      fi
   if [ "$cache_dir" ];then rm -rf "$cache_dir"; fi
+  if [ "$data_dir"  ];then rm -rf "$data_dir";  fi
   if [ "$nix_store" ];then rm -rf "$nix_store"; fi
   if [ "$nix_state" ];then rm -rf "$nix_state"; fi
 }