From 56572324956cfaa9039f7d7b7885cb3fec22f3fb Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 16 Sep 2026 13:39:20 +0900 Subject: pkg: write tar status This serves as a status indicator while fetching large tarballs, and preserves information otherwise stripped during unpacking. This is a revision of the tarArtifact to avoid inconsistent state from previously cured tarArtifact lacking their status files. Signed-off-by: Ophestra --- pkg/pkg_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg/pkg_test.go') diff --git a/pkg/pkg_test.go b/pkg/pkg_test.go index aa5016c1..775b68d9 100644 --- a/pkg/pkg_test.go +++ b/pkg/pkg_test.go @@ -587,7 +587,9 @@ func checkWithCache(t *testing.T, testCases []cacheTestCase) { // destroy empty fault directory if err := os.Remove(base.Append("fault").String()); err != nil { - t.Fatal(err) + if !errors.Is(err, syscall.ENOTEMPTY) { + t.Fatal(err) + } } want := tc.want.hash() -- cgit v1.3.1