restic: 0.11.0 -> 0.12.0 (#114329)

authored by Simon Bruder and committed by GitHub 59f5c549 04ac9dcd

+33 -3
+25
pkgs/tools/backup/restic/0001-Skip-testing-restore-with-permission-failure.patch
···
··· 1 + From 8e6186be04e2819b6e3586e5d1aeb8a824e1979f Mon Sep 17 00:00:00 2001 2 + From: Simon Bruder <simon@sbruder.de> 3 + Date: Thu, 25 Feb 2021 09:20:51 +0100 4 + Subject: [PATCH] Skip testing restore with permission failure 5 + 6 + The test fails in sandboxed builds. 7 + --- 8 + cmd/restic/integration_test.go | 1 + 9 + 1 file changed, 1 insertion(+) 10 + 11 + diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go 12 + index 7d198d33..1588ccb1 100644 13 + --- a/cmd/restic/integration_test.go 14 + +++ b/cmd/restic/integration_test.go 15 + @@ -1170,6 +1170,7 @@ func TestRestoreLatest(t *testing.T) { 16 + } 17 + 18 + func TestRestoreWithPermissionFailure(t *testing.T) { 19 + + t.Skip("Skipping testing restore with permission failure") 20 + env, cleanup := withTestEnvironment(t) 21 + defer cleanup() 22 + 23 + -- 24 + 2.29.2 25 +
+8 -3
pkgs/tools/backup/restic/default.nix
··· 3 4 buildGoModule rec { 5 pname = "restic"; 6 - version = "0.11.0"; 7 8 src = fetchFromGitHub { 9 owner = "restic"; 10 repo = "restic"; 11 rev = "v${version}"; 12 - sha256 = "13zmx9wzv29z0np3agx4rsz1j9pgrvlnngjsb971i1dnzwv5l3hf"; 13 }; 14 15 - vendorSha256 = "09sa5jpdj73w595c063mib14132zacswh54nmjqp2n440cflmwjh"; 16 17 subPackages = [ "cmd/restic" ]; 18
··· 3 4 buildGoModule rec { 5 pname = "restic"; 6 + version = "0.12.0"; 7 8 src = fetchFromGitHub { 9 owner = "restic"; 10 repo = "restic"; 11 rev = "v${version}"; 12 + sha256 = "07gxf56g45gj2arvdnrr9656i9ykhy1y6k6zdlni1sa3aa2x2bbf"; 13 }; 14 15 + patches = [ 16 + # The TestRestoreWithPermissionFailure test fails in Nix’s build sandbox 17 + ./0001-Skip-testing-restore-with-permission-failure.patch 18 + ]; 19 + 20 + vendorSha256 = "14z22lmdd681rn61alpqbn3i9fn0kcc74321vjvhz2ix2mch3c1z"; 21 22 subPackages = [ "cmd/restic" ]; 23