diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 77e4ee2..39f5501 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -114,7 +114,9 @@ func (a *tarArtifact) Cure(t *TContext) (err error) { err = closeErr } }(tr) - tr = io.NopCloser(tr) + br := t.cache.getReader(tr) + defer t.cache.putReader(br) + tr = io.NopCloser(br) switch a.compression { case TarUncompressed: