🔧 Drop containerd workaround

Partly reverts
37cc186c0b,
but re-enable test.
This commit is contained in:
Ettore Di Giacinto
2022-01-04 16:56:08 +01:00
parent 80bc5429bc
commit 2bd623a61c
2 changed files with 4 additions and 6 deletions

View File

@@ -78,6 +78,9 @@ var _ = Describe("Delta", func() {
)
Expect(err).ToNot(HaveOccurred())
defer os.RemoveAll(tmpdir) // clean up
// No extra dirs are present
Expect(file.Exists(filepath.Join(tmpdir, "home"))).To(BeFalse())
// Cache from go
Expect(file.Exists(filepath.Join(tmpdir, "root", ".cache"))).To(BeTrue())
// sh is present from alpine, hence not in the result

View File

@@ -65,12 +65,7 @@ func ExtractDeltaAdditionsFiles(
return nil, err
}
switch hdr.Typeflag {
case tar.TypeDir:
filesSrc.Set(filepath.Dir(hdr.Name), "")
default:
filesSrc.Set(hdr.Name, "")
}
filesSrc.Set(hdr.Name, "")
}
return func(h *tar.Header) (bool, error) {