From 9eecb073aa16525d4a09c62178f32ba8b7788cc5 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 9 Jul 2021 16:06:34 -0700 Subject: [PATCH] fallback git-cache 1.3.1 -> 1.4.1 --- default.nix | 4 ++-- tests/lib/test-setup.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 071c428..c69c03a 100644 --- a/default.nix +++ b/default.nix @@ -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 ]; diff --git a/tests/lib/test-setup.sh b/tests/lib/test-setup.sh index f3eb661..e4260f4 100644 --- a/tests/lib/test-setup.sh +++ b/tests/lib/test-setup.sh @@ -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 } -- 2.44.1